javascript format for mozilla
<p>what is the equallent of window.event.clientX for mozilla in javascript?
This is my code, function called in body-> <strong>onbeforeunload="return CloseOrNotClose(event);"</strong></p>

<p>This is fine for ie but not working in mozilla.</p>

<pre><code>function CloseOrNotClose(event) {

var ie = document.all;
if (ie) {
           if ((window.event.clientX &lt; 0) || (window.event.clientY &lt; 0)) {
                    return "Your Information related to this exam will be lost and you will have to reappear for it, \nDo you want to continue?";
             }
}
else {
    if ((event.clientX &lt; 0) || (event.clientY &lt; 0)) 
    return "Your Information related to this exam will be lost and you will have to reappear for it, \nDo you want to continue?";
}
</code></pre>

<p>}</p>
