hi, i used this code for caturing the close event in firefox browser .but the alert is getting when refresh and closing the tab in the browser also .
can anyone help me out from this problem.
if (!event.clientX && !event.clientY ) {
//alert(event.clientX+" ,"+event.clientY);
alert(event.pageY);
if(event.pageY)
{
alert("hiiiiii in ff");
}
}
advance appreciation for the best solution.