[url]http://bytes.com/topic/javascript/insights/825556-using-onbeforeunload-javascript-event[/url]
"Please remember that the window.onbeforeunload event is fired every time the page is about to unload. [color=red]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. [/color]Please take this into consideration when developing the function that handles the window.onbeforeunload event. "
"Please remember that the window.onbeforeunload event is fired every time the page is about to unload. [color=red]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. [/color]Please take this into consideration when developing the function that handles the window.onbeforeunload event. "