Friday, August 22, 2008

Javascript Event Handlers

I wanted a quick list of event handlers so here they are. This is courtesy of our friends at the w3schools.

FF: Firefox, N: Netscape, IE: Internet Explorer

AttributeThe event occurs when...FFNIE
onabortLoading of an image is interrupted134
onblurAn element loses focus123
onchangeThe user changes the content of a field123
onclickMouse clicks an object123
ondblclickMouse double-clicks an object144
onerrorAn error occurs when loading a document or an image134
onfocusAn element gets focus123
onkeydownA keyboard key is pressed143
onkeypressA keyboard key is pressed or held down143
onkeyupA keyboard key is released143
onloadA page or an image is finished loading123
onmousedownA mouse button is pressed144
onmousemoveThe mouse is moved163
onmouseoutThe mouse is moved off an element144
onmouseoverThe mouse is moved over an element123
onmouseupA mouse button is released144
onresetThe reset button is clicked134
onresizeA window or frame is resized144
onselectText is selected123
onsubmitThe submit button is clicked123
onunloadThe user exits the page123

Listing can be found here: http://www.w3schools.com/jsref/jsref_events.asp

No comments: