How I can capture event, close browser window, in jQuery or javascript ?
http://docs.jquery.com/Events/unload#fn
jQuery:
$(window).unload( function () { alert("Bye now!"); } );
or javascript:
window.onunload = function(){alert("Bye now!");}
1.4m articles
1.4m replys
5 comments
57.0k users