Please refer to Tutorial 3: Event Listeners for usage information.
type | a string specifying the type of event, such as "mouseover", "click", etc. | |
target | an object reference to the element that received the event | |
currentTarget | an object reference to the element that fired the event | |
coordinates of mouse event relative to the screen | ||
screenX | x coordinate from left edge of screen | |
screenY | y coordinate from top edge of screen | |
coordinates of mouse event relative to the browser window's client area | ||
clientX | x coordinate from left edge of window client area | |
clientY | y coordinate from top edge of window client area | |
coordinates of mouse event relative to the element | ||
layerX | x coordinate from left edge of element | |
layerY | y coordinate from top edge of element | |
mouse button clicked | ||
button | an integer specifying the mouse button that was clicked | |
keyboard properties | ||
keyCode | an integer specifying the keyboard key that was pressed | |
altKey | a boolean specifying whether the ALT key was held down when the event was fired | |
ctrlKey | a boolean specifying whether the CTRL key was held down when the event was fired | |
shiftKey | a boolean specifying whether the SHIFT key was held down when the event was fired |
void | stopPropagation | () |
void | preventDefault | () |
© 2001, Tim Morgan. 10717 S. Delaware Ave., Tulsa, OK 74137.