Jump to content

JavaScript/W3C event handlers

From Wikibooks, open books for an open world



Attribute Trigger
onabortLoading of image was interrupted
onblurElement loses focus
onchangeElement gets modified
onclickElement gets clicked
ondblclickElement gets double clicked
onerrorAn error occurred loading an element
onfocusAn element received focus
onkeydownA key was pressed when an element has focus
onkeypressA keystroke was received by the element
onkeyupA key was released when the element has focus
onloadAn element was loaded
onmousedownThe mouse button was pressed on the element
onmousemoveThe mouse pointer moves while inside the element
onmouseoutThe mouse pointer was moved outside the element
onmouseoverThe mouse pointer was moved onto the element
onmouseupThe mouse button was released on the element.
onresetThe form's reset button was clicked
onresizeThe containing window or frame was resized
onselectText within the element was selected
onsubmitA form is being submitted
onunloadThe content is being unloaded (e.g. window being closed)


close