EVENTS

onload

When you first open a page, this event fires. Used with BODY or FRAMESET.

onunload

when you exit a page, this event fires. Used with BODY or FRAMESET.

onclick

This event fires when you click on an element like an image or link. This is when you press and release your mouse button.

ondblclick

This event fires when you double on an element like an image or link.

onmousedown

This event fires when you press down on your mouse button over an element like an image or link.

onmouseup

This event fires when you release your mouse button over an element.

onmouseover

This event fires when your mouse pointer enters an element. That is, when your mouse is over the element.

onmousemove

This event fires when your mouse pointer is actually moving over an element. It will fire as many times as your mouse pointer moves across that element.

onmouseout

This event fires when you move your mouse pointer out of an element.

onfocus

This event fires when an element receives focus either by the pointing device or by pressing the tab key on your keyboard until that element is in focus.

onblur

This event fires when an element loses focus. It is true when you click on another element or when your tab over to another element.

onkeypress

This event fires when you press and release a key over the element.

onkeydown

This event fires when you press down on a key over an element.

onkeyup

This event fires when you release a key over an element.

onsubmit

This event fires when a form is submitted. It applies to the FORM element. It is useful for a event-handling routine to preform tasks based on the submission of an HTML form such as checking for a missing name field or adding numbers.

onreset

This event fires when a form is reset. It applies to the FORM element.

onselect

This event fires when you highlight text in an INPUT or TEXTAREA element.

onchange

This event fires after you give focus to that element and change its contents. It applies to the INPUT, SELECT and TEXTAREA elements.