Link to home
Start Free TrialLog in
Avatar of alphamn
alphamn

asked on

html code for Mozilla firefox

I have written the following code on the OnbeforeunLoad event of body
<HTML>
:
:
:
<script language =javascript>
function performTask()
{
alert(event.clientY);
}
</script>

:
:
<body onbeforeUnLoad="javascript:performTask()">
:
:
:
:
</body>
</HTML>
the code works well with IE but doesn't work with Mozilla firefox (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1)



thanks in advance if any one can provide me with the solution...
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

That is non-standard IE only event.  There is no way to implement anything similar in other browsers.

Cd&
The following link is for firefox open source code page....

http://www.mozilla.org/hacking/

i guess this may help u to some extent.
ASKER CERTIFIED SOLUTION
Avatar of ARCglide
ARCglide

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial