How can I implement a confirmation dialog for critical action?
<p>Im not proficient in JS myself very much, so it would probably take me a few hours to figure this out myself, so I figured I'd ask you guys. </p>

<p>I have Delete/Ban links on my site, that are used by admins to moderate the users and what they post. Since these links have such drastic consequences on the site's content I would want to have some sort of confirmation that would popup when one of the links is clicked. </p>

<p>It should have some extra text explaining what's about to happen, and OK/Cancel buttons. </p>

<p>So I have a link, for example like this:</p>

<pre><code>&lt;a href="ban.php?id=123" class="confirm_ban"&gt;Ban John&lt;/a&gt;
&lt;a href="delete.php?id=123" class="confirm_delete"&gt;Delete Post&lt;/a&gt;
</code></pre>

<p>When this link is clicked, the code needs to be triggered. If OK is pressed, it goes to ban.php?id=123, if Cancel is pressed, it doesn't go anywhere. </p>

<p>A simple JS dialog box, will do. Or if you have a link for a fancy jquery powered box, you can point me towards that also.</p>

<p>Thanks!</p>
