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.