| Event |
Event-Handler |
When it occurs |
What it is applied on |
1.2 |
|
Click on a linked event to see an example of how it can be used
|
| Abort
|
onAbort
|
A loading image is aborted
|
images
|
|
| Blur
|
onBlur
|
Focus is removed from an element
|
windows, frames, all form elements
|
|
| Change
|
onChange
|
The value of an element is changed
|
text fields, textareas, select lists
|
|
| Click
|
onClick
|
An element or link is clicked on
|
buttons, checkboxes, radio buttons, links
|
|
| DblClick
|
onDblClick
|
A link or form element is double clicked Note: DblClick is not implemented on the Macintosh (at least with Netscape)
|
links, buttons
|
x |
| DragDrop
|
onDragDrop
|
An object is dragged and dropped in a window
|
windows
|
x |
| Error
|
onError
|
An image or document causes an error
|
windows, images
|
|
| Focus
|
onFocus
|
Focus is put on an element
|
windows, frames, all form elements
|
|
| KeyDown
|
onKeyDown
|
A key is pushed down
|
documents, images, links, text areas
|
x |
| KeyPress
|
onKeyPress
|
A key is pressed or held down
|
documents, images, links, text areas
|
x |
| KeyUp
|
onKeyUp
|
A key is released
|
documents, images, links, text areas
|
x |
| Load
|
onLoad
|
A document is loaded
|
document body
|
|
| MouseDown
|
onMouseDown
|
Mouse button is pushed down
|
documents, buttons, links
|
x |
| MouseMove
|
onMouseMove
|
Mouse pointer is moved
|
nothing by default
|
x |
| MouseOut
|
onMouseOut
|
Mouse pointer moves out of an area or a link
|
areas, links
|
|
| MouseOver
|
onMouseOver
|
Mouse pointer moves over a link
|
links
|
|
| MouseUp
|
onMouseUp
|
Mouse button is released
|
documents, buttons, links
|
x |
| Move
|
onMove
|
Window is moved
|
windows
|
x |
| Reset
|
onReset
|
A from is reset
|
forms
|
|
| Resize
|
onResize
|
A window is resized
|
windows
|
x |
| Select
|
onSelect
|
The contents of a form input field is selected
|
text fields, textareas
|
|
| Submit
|
onSubmit
|
A form is submitted
|
forms
|
|
| Unload
|
onUnload
|
A document is exited
|
document body
|
|