JavaScript alert boxes combined with PHP
<pre><code>echo "&lt;td&gt;&lt;a href='delete.php?id=$row[id]&amp;&amp;category=$a' onclick='return confirm(\'are you sure you wish to delete this record\');'&gt;delete&lt;/a&gt;&lt;/td&gt;";
</code></pre>

<p>Above is the code I am trying to use. Every time it does nothing and I cannot see how I can use 'proper' JavaScript methods. What is the reason?</p>
