Hi rtdev,
Thanks for sharing your ideas about browser Close and Refresh issue.
I tested your sample codes and found the "alert("Window is closed!");" couldn't be raised when refreshing or closing IE browser. But when I changed your sample codes as this - "if (window.event.clientX > 0 && window.event.clientY < 0)", it seems that the "alert("Window is closed!");" can't be triggered when refreshing the web page if I place my mouse in the client area of the IE browser. If I place my mouse in the title area of the IE browser, the "alert("Window is closed!");" will be triggered when refreshing the web page. When I click "X" button to close the current IE browser, the "alert("Window is closed!");" willhappen all the time.
Regards,