Event Attributes Reference Guide

Attribute Description
Window Events
onload Script to be run when a document loads
onunload Script to be run when a document unloads
Form Element Events
onchange Script to be run when the element changes
onsubmit Script to be run when the form is submitted
onreset Script to be run when the form is reset
onselect Script to be run when the element is selected
onblur Script to be run when the element loses focus
onfocus Script to be run when the element gets focus
Keyboard Events
onkeydown What to do when key is pressed
onkeypress What to do when key is pressed and released
onkeyup What to do when key is released
Mouse Events
onclick What to do on a mouse click
ondblclick What to do on a mouse doubleclick
onmousedown What to do when mouse button is pressed
onmousemove What to do when mouse pointer moves
onmouseover What to do when mouse pointer moves over an element
onmouseout What to do when mouse pointer moves out of an element
onmouseup What to do when mouse button is released
web directory lists and rankings