acoder,
I'm using the onbeforeunload event but as you've mentioned it is fired in all cases so I need some sort of condition to identify browser close action.
The user needs to be logged out of the system otherwise the user won't be able to log back into the system until after the session has timed out.
User Profile
Collapse
-
There's a session time limit but we also need to detect this event to logout the current user.Leave a comment:
-
Detect Browser Close for Window with Multiple Tabs (IE7)
Hello,
I need to detect when the red X button on the browser window is clicked then logoff the session. It works only when the browser has a single tab because it meets the condition window.event.cl ientY < 0. However, when there are multiple tabs and user needs to respond to "Do you want to close all tabs" alert, window.event.cl ientY is no longer negative. This is for IE 7. Any suggestions?
Thank yo...
No activity results to display
Show More
Leave a comment: