JavaScript onClick href
<p>with the use of <code>&lt;a&gt;</code> tag, i can put like:</p>

<pre><code>&lt;a href="include/sendemail.php?id_user=&lt;?= $_GET['id_user'];?&gt;" onclick="return confirm('Are you sure want to send an email?');" &gt;Send Email&lt;/a&gt;
</code></pre>

<p>and how do apply that code to button :</p>

<pre><code>&lt;input type="button" onclick="return confirm('Are you sure want to send an email?');"  value="Send Email" &gt;
</code></pre>
