captureing browser close (x) button click in Fairfox3
Posted on 2008-11-02
I need to pop up a survey window when the user closes the browser.
Means when the user clicks on the (x) button of the browser.
But its not working in Fairfox3.0. I have been working on this for the last 3 days.
Here is my code
if (event.ClientX > document.client.width && event.ClientY <0 )
The above code is working well in internet explorer. But not at all working in FAirfox3.0
This is very very important for me. I appreciate if I could get some help here.
Thanks in advance