<class home>  <Jscript>   <back   next>

Event Handlers

Event Handlers are different for different objects on your page. Not every Handler is available for every object. Dreamweaver shows you what is available for the object you have selected.


Some common Event Handlers:

Page Loading type:

onAbort: When the stop or esc key is pressed before a page or image loads.
(associated tags: BODY/IMG)

onLoad: When a page or image loads.
(associated tags: BODY/IMG)

onUnload: When a user leaves the page.
(associated tags: BODY)

onResize: When a user resizes the browser.
(associated tags: BODY)

onError: When a Javascript error occurs.
(associated tags: A/BODY/IMG)

Mouse type:

onDblClick:
When a user double clicks an image or a link.
(associated tags: A/IMG)

onMouseMove: When the user moves the mouse.
(associated tags: A/IMG)

onMouseDown: When the mouse is pressed.
(associated tags: A/IMG)

onMouseUp:
When the mouse is released.
(associated tags: A/IMG)

onMouseOver: When the mouse is over an Image or link.
(associated tags: A/IMG)

onMouseOut: When the mouse moves away from the Image or link after being over it.
(associated tags: A/IMG)

Form type:

onBlur:
When a form field "loses the focus" of it's intended use.
(associated tags: form fields: text, textarea, select)

onFocus: When a form field recieves the user's focus by being selected by the Tab key.
(associated tags: form fields: text, textarea, select)

onChange: When the user changes the default selectin in a form field.
(associated tags: most form fields)

onSelect: When the user selects text within a form field.
(associated tags: form fields: text, textarea)

onSubmit: When a user clicks on the form's Submit button.
(associated tags: form)

onReset: When a user clicks on the form's Reset button.
(associated tags: form)

Keyboards type:

onKeyDown:
When a key on the keyboard is depressed.
(associated tags: form fields: text, textarea)

onKeyPress: When the user presses any key.
(associated tags: form fields: text, textarea)

onKeyUp: When a key on the keyboard is released.
(associated tags: form fields: text, textarea)


INTERNET EXPLORER 4 EVENTS:

onHelp:
When the user presses F1 or selects a link labeled "help".
(associated tags: A/IMG)

onReadyStateChange: Page is loading.
(associated tags: IMG)

onAfterEvent: After the content of a form field changes.
(associated tags: A/IMG/BODY)

onBeforeUpdate: After form field item changes, before content loses focus.
(associated tags: A/IMG/BODY)

onScroll: When the user uses the page scrollbars.
(associated tags: BODY)