Jquery popup when mailto link is clicked
<p>I have this bit of code but it's not doing what I want. </p>

<p>Whenever someone clicks on a mailto link, a popup will display the following message 'This is the message.' So far nothing is happening</p>

<pre><code>$('a[href^=mailto:]').click(function () { 
    var x=window.confirm('This is the message.');
    var val = false;
    if (x)
        val = true;
    else
        val = false;
    return val;

});
</code></pre>
