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.

ehm ....
the above code is JavaScript, not Java.
my advice, for better help on this, browse this forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.