How to detect confirm() choice?
<p>I have this jquery code that generates a yes/no dialog box when the user click a button.</p>

<pre><code>$('#btnFinalize').click(function()
{
   confirm("Are you sure?");            
});
</code></pre>

<p>But how can I detect if the user click yes/no?  </p>
