clientside code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there anyway client side in IE to determine when the "X" button or the
"Close" menu item is clicked?
 
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)
 
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?
 
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)

However, don't rely on it. This shouldn't replace proper session
handling on the server.

HTH,
Laurent
 
Back
Top