Specification
Contents
Previous

HTML Events

Body-specific Events

onload
When this document is loaded, an alert should appear indicating support for this event.
onunload
Reload this document to see the alert for this event, and it should appear again when leaving this page.

Generic Events

The numbers in the fields below should change to keep track of how many times each event has occurred.
Event Type
Click
Double-Click
Mouse Down
Mouse Up
Mouse Over
Mouse Move
Mouse Out
Key Press Note: this value should require a down AND an up, not act identical to KeyDown.
Key Down
Key Up

Element-specific events

The numbers in the fields below should change to keep track of how many times each event has occurred.
Event Type Anchor Events: Move the focus to and then away from this anchor to test the events below. Area Events: Move the focus to and then away from the image below to test the events below.
Blue-White JPEG Default Area
Input Events: SELECT Events: Textarea Events: Button Events:
Focus
Blur
Select
Change

Form events

onsubmit
Click to test this event.
onreset
Click to test this event.

See also my Core JavaScript Test Suite and my HTML DOM Test Suite for this chapter.

Valid HTML 4.01!