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?
| SitePoint Sponsor |
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.
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