windows close event

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

Guest

I'm doing a chat, if one user close the windows throw X button, I need one event to do an action (delete the user for example) how I can do it. In JavaScript exist onunload event, but it is executed when the page is submit.
Any help would be appreciate
 
The "onunload" event is executed whenever the browser navigates away from
the current location, as well as when the window is closed.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Kiosmy said:
I'm doing a chat, if one user close the windows throw X button, I need one
event to do an action (delete the user for example) how I can do it. In
JavaScript exist onunload event, but it is executed when the page is submit.
 
Back
Top