Using the OnBeforeUnload JavaScript Event

http://bytes.com/topic/javascript/insights/825556-using-onbeforeunload-javascript-event


"Please remember that the window.onbeforeunload event is fired every time the page is about to unload. This means that if the user clicks a button on your page, and your page posts back to the server, the window.onbeforeunload event will fire. Please take this into consideration when developing the function that handles the window.onbeforeunload event. "

你可能感兴趣的:(JavaScript)