x - shut down the window

Discussion in 'JavaScript' started by hantz, Oct 30, 2007.

  1. #1
    i started to use onunload="displayContent00()"
    but than i realized that it not shoots only when the user click on X
    but it shoots every time page being refreshed or skiping to another page too...
    can someone help me solve this one?
    i need something that shoots only when the window being closed with the X
     
    hantz, Oct 30, 2007 IP
  2. KatieK

    KatieK Active Member

    Messages:
    116
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I don't think that there's an event handler that will capture just closing via the "X". I looked through my reference book and didn't find one.

    Generally you can't get such granular control using JavaScript.
     
    KatieK, Oct 31, 2007 IP