window and tab close detection
<p>there are many articles for window and tab close detection, however, since the newest browser published, those codes since not working anymore. <a href="http://www.webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/" rel="nofollow">webkit-page-cache-ii-the-unload-event</a> is an article for webkit browsers. It use onPageHiden() to detect the leave page event, however, it seems no longer work in chrome. Also, if I just close the browser, It won't do anything also.</p>

<p>How I can trigger an event when I not only close the tab but also close the browser?</p>
