SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Event when window closes
-
May 3, 2007, 08:18 #1
Event when window closes
Hello folks,
I need some help. What I tried to do is to write an event that is fired when I click on the X to close a browser window. Unfortunately I am not able to do it on my own ...
Any suggestions?Words are weapons of Mass Destruction.
-
May 3, 2007, 08:38 #2
the window's unload event you're looking for
in javascript you add an event listener. Check out for advanced event listener methods and for browser compatibility here:
http://www.quirksmode.org/js/events_advanced.html
Bookmarks