Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: return the event


Message #1 by "Colin Horne" <colinhorne@b...> on Wed, 19 Feb 2003 22:34:45 -0000
that's brilliant!

thanks

colin
----- Original Message -----
From: "Robert Nyman" <robert.nyman@c...>
To: "javascript" <javascript@p...>
Sent: Thursday, February 20, 2003 7:55 AM
Subject: [javascript] RE: return the event


Depends on your browser...

However, this will work in IE, Netscape 4, Opera 5+ and Gecko-based
browsers (Netscape 6+, Mozilla etc):

function mouseover_event(oEvent){
alert(oEvent.type);
}

<a href="#" onMouseOver="mouseover_event(event);">HERE</a>


For more info on event handling, please see:

http://p2p.wrox.com/javascript/faq.asp#no35


/Robert



-----Original Message-----
From: Colin Horne [mailto:colinhorne@b...]
Sent: den 19 februari 2003 23:35
To: javascript
Subject: [javascript] return the event


hey

does anyone know the code to return the event?

eg.

<script>
function mouseover_event()
{
alert(/*the name of the event. in this case "MouseOver"*/);
}
</script>
<a href="#" onMouseOver=2mouseover_event();">HERE</a>

regards

colin horne





  Return to Index