G Guest Sep 27, 2006 #1 Is there anyway client side in IE to determine when the "X" button or the "Close" menu item is clicked?
Is there anyway client side in IE to determine when the "X" button or the "Close" menu item is clicked?
B bruce barker \(sqlwork.com\) Sep 27, 2006 #2 yes, hook to the window.onUnload, and check the x & y of the mouse, if its off screen, then its a close() -- bruce (sqlwork.com)
yes, hook to the window.onUnload, and check the x & y of the mouse, if its off screen, then its a close() -- bruce (sqlwork.com)
G Guest Sep 27, 2006 #3 I was looking at event.ClientY and it is less then zero, but, if you click the Back button, Y coordinate is also negative. the clientX is positive. Is there a way to say look at the width of the screen and then the x coordinate?
I was looking at event.ClientY and it is less then zero, but, if you click the Back button, Y coordinate is also negative. the clientX is positive. Is there a way to say look at the width of the screen and then the x coordinate?
L Laurent Bugnion Sep 27, 2006 #4 Hi, yes, hook to the window.onUnload, and check the x & y of the mouse, if its off screen, then its a close() -- bruce (sqlwork.com) Click to expand... However, don't rely on it. This shouldn't replace proper session handling on the server. HTH, Laurent
Hi, yes, hook to the window.onUnload, and check the x & y of the mouse, if its off screen, then its a close() -- bruce (sqlwork.com) Click to expand... However, don't rely on it. This shouldn't replace proper session handling on the server. HTH, Laurent