Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I capture the event of the web browser is closed?

Status
Not open for further replies.

Cenedra

Programmer
Jan 2, 2003
114
US
I want to do some processing on my site if they close out of the browser; how can I capture this?

Thanks for your help in advance
 
Try onunload, e.g.
Code:
<body onunload="alert('dont leave me alone');">
</body>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top