RobBroekhuis
Technical User
Javascript event handlers get passed an event object which has useful properties - for example the mouse location. I can't figure out how to access this event object when the event is called from an onMouseOver="...." directive in an HTML element. What I tried, and didn't work, was:
<img src="..." onMouseOver="DoEvent(event,'other arguments');">
<script>
function DoEvent(e,OtherArgumentList) {
alert(e.pageX);
}
</script>
How should I modify it?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
<img src="..." onMouseOver="DoEvent(event,'other arguments');">
<script>
function DoEvent(e,OtherArgumentList) {
alert(e.pageX);
}
</script>
How should I modify it?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)