|
|
Q1791 How can I detect the browser close event?
irt.org | Knowledge Base | JavaScript | Window | Q1791 [ previous next ] Q1791 How can I detect the browser close event?Here is something that work for IE4 and up. In the onUnload event of the html <BODY> tag, call a function that used the mouse position to determine if the browser close button has been click. The clientX and clientY properties retrieves negative values since they excluded window decorations and scroll bars.
Submitted by CGagnon Feedback on 'Q1791 How can I detect the browser close event?' |
-- div -->
|