Can you help me with the equivalent code of this in firefox?
Thanks in advance.
<html>
<head>
<title>Event Handling</title>
<script type="text/javascript">
<!--
//MOUSE COORDINATES
function updateMouseCoordinates(){
coordinates.innerText = event.srcElement.tagName + "(" + event.offsetX + "," + event.offsetY + ")";//works on IE not in firefox
}
//-->
</script>
</head>
<body onmousemove="updateMouseCoordinates()">
<span id="coordinates">(0,0)</span>
</body>
</html>