Javascript events


Javascript 1.0 and 1.1 events

Event Occurs when...
blur An element loses focus (window, frame or form element)
change A select, text, or textarea field loses focus and its value has been modified
click An object is clicked.
focus An element recives focus (window, frame, frameset or a form element)
load The browser finishes loading a window
mouseover The cursor moves over an object
select The user selects some of the text within a text or textarea field
submit The user submits a form
unload The user exits a document

Javascript 1.2 events

Event Occurs when...
abort The user aborts the loading of an image (e.g., by clicking the Stop button)
dblclick The user double-clicks a form element or a link
dragdrop The user drops an object onto the browser window
error The loading of a document or image causes an error
keydown The user depresses a key
keypress The user presses or holds down a key
keyup The user releases a key
mousedown The user depresses a mouse button
mousemove The user moves the cursor
mouseout The cursor leaves an area or link from inside that area or link
mouseup The user releases a mouse button
move The user or script moves a window or frame
reset The user clicks a Reset button
resize The user or script resizes a window or frame

Remember: in order to handle one event, just put 'On' before the name of that event. For example, the event-handler for the Keypress event is OnKeypress.


Index           Home  Back       About  Contact us!

Copyright (c) 1998-2006 Wowarea