Using beforeunload and unload together?
<p>I heard that Opera doesn't work with beforeunload. And some earlier versions of IE also. So how can I use these together ? If I use below, it runs 2 times (They all work) in Firefox.</p>

<pre><code>$(window).bind('beforeunload', function () {

});

$(window).unload(function () {

});
</code></pre>
