Calling javascript function in html link
<p>im a little stuck. im trying to call a javascript alert when clicking on a link like so</p>

<pre><code> &lt;a onclick="return confirm('Are you sure?')" href="blog-delete.php?blogid=1"&gt;Delete&lt;/a&gt;
</code></pre>

<p>which works fine, But im trying to call it inside a php var lik so</p>

<pre><code> $blogtitle . '&lt;p align="right" style="font-size:10px;" &gt;&lt;a onclick="return confirm("Are you sure?")" href="blog-delete.php?blogid=' . $blogid . '"&gt;Delete&lt;/a&gt; | '. $blogdate . '&lt;/p&gt;&lt;/div&gt; &lt;br /&gt;  ';
</code></pre>

<p>but the double qoute dont allow for the function to work</p>

<p>anyhelp would be great</p>

<p>Many thanks</p>
