Detect Close windows event by Jquery
<p>Could you please give me the best way to detect <strong>only window close event</strong> for <strong>all browsers</strong> by jquery?</p>

<p>I mean clicking X button on the browser or window.close(), not meaning F5, form submission,
window.location or link.
I were looking for many threads but have not found the right way.</p>

<p>Thanks so much for support.</p>
