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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing of browser window?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hey,
How do i detect when the user closes the browser window by clicking the X button?
thanx in advance
Coolnerd777
 
About all you can do is use an onunload event handler.There are others, like onbeforeunload - but will not work in NN<6.
-BB &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top