Forums.ATC.no
Teknisk => Generelt teknisk => Emne startet av: ATC på 18. Juli 2010, 17:52 pm
-
When calling an event handler such as onmouse or onmouseover, how do I pass the event object containing the mouse coordinates etc?
-
The reserved name 'evt' contains the mouse event. Example:
onclick="call_handler(evt);"
In the corresponding javascript, use:
function callhandler(event) {
object = event.target; // object now contains the element
}