How I can capture event, close browser window, in jQuery or javascript ?
See Question&Answers more detail:osHow I can capture event, close browser window, in jQuery or javascript ?
See Question&Answers more detail:oshttp://docs.jquery.com/Events/unload#fn
jQuery:
$(window).unload( function () { alert("Bye now!"); } );
or javascript:
window.onunload = function(){alert("Bye now!");}