Can any one tell me the issue of this function .. this function isn't working
<pre><code>$(window).unload(function() {
    var c = confirm("Are You want to open Foortal.pk");
    if (c) {

        window.location.replace("http://www.google.com")

        return true;
    } else {
        return false;
    }
});​
</code></pre>

<p>i don't know about problem</p>
