Detect Browser Close Event

Discussion in 'JavaScript' started by php_baroda, Apr 17, 2007.

  1. #1
    Hey,

    Can ny one help me in finiding event which will detect when browser will be closed by visitor in PHP or in Javascript.

    I wann to exactly do like is - when some one leave web site in between of registration phase.

    So when they close browser one page will open and saying thanks and one email will go to say that visitor can again login and register from there back.

    Please ny one can help me in this.

    Thanks in advance.
     
    php_baroda, Apr 17, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    <body onunload="yourJS();">
     
    krakjoe, Apr 17, 2007 IP