SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict I don`t mind's Avatar
    Join Date
    Feb 2006
    Location
    LA
    Posts
    218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Founder of Primal Skill Ltd. feketegy's Avatar
    Join Date
    Aug 2006
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •