Jquery event doesn't fire in any case
<p>So, here I want just to alert true, when window is closed ( I mean particullary tab in browser).</p>

<pre><code>$(document).ready(function(){



});
$(window).unload(function(){
    alert('true'); });
</code></pre>

<p>tried <code>$(window)</code> also inside <code>$(document).ready()</code>, nothing.</p>
