javascript - Detect Close windows event by Jquery -


could please give me best way detect only window close event all browsers jquery?

i mean clicking x button on browser or window.close(), not meaning f5, form submission, window.location or link. looking many threads have not found right way.

thanks support.

there no specific event capturing browser close event.

you can capture on unload of current page.

by method, effected while refreshing / navigating current page.

even calculating of x y postion of mouse event doesn't give result.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -