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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top