%Events% Attributes
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =

Main Index | Element Tree | Element Index | HTML Support History

What are Event Handlers?
Event Handlers allow embedded scripting languages to trap events and actions that occur as a page is experienced by a reader. These optional attributes then trigger external or in-line script code. The sheer quantity of event handlers now available hint at the possibilities for enriching a reader's page experience.

Note: The quantity of these attributes made it impossible to verify each of them manually. Several references were consulted, including Microsoft's and Netscape's JavaScript reference sites, as well as an excellent book, "Dynamic HTML, the Definitive Reference" by Danny Goodman. Where version information was directly in conflict, it is noted on the attribute support pages with an *.

Event Types: Generic | Page | Form | Marquee | Editing | Data Binding | Misc

Generic Events
Event    Support    Description
onClick  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  The pointing device has been clicked.
onDblClick  2 | 3 | 3.2 | 4 | IE4 | N4 | O  The pointing device has been double-clicked.
onMouseDown  2 | 3 | 3.2 | 4 | IE4 | N4 | O  The pointing device button has just been pressed.
onMouseUp  2 | 3 | 3.2 | 4 | IE4 | N4 | O  The pointing device button has just been released.
onMouseOver  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  The pointing device enters the bounds of an element from outside the element.
onMouseMove  2 | 3 | 3.2 | 4 | IE4 | N4 | O  The pointing device was moved within the boundary of the element.
onMouseOut  2 | 3 | 3.2 | 4 | IE4 | N3 | O3  The pointing device was moved out of the boundary of the element.
onKeyPress  2 | 3 | 3.2 | 4 | IE4 | N4 | O  A keyboard key is pressed and released for an element that has focus.
onKeyDown  2 | 3 | 3.2 | 4 | IE4 | N4 | O  A keyboard key is depressed for an element that has focus.
onKeyUp  2 | 3 | 3.2 | 4 | IE4 | N4 | O  A keyboard key is released for an element that has focus.

Page/Dependency Events
Event    Support    Description
onAbort  2 | 3 | 3.2 | 4 | IE4 | N3 | O  Image downloading has been interrupted.
onBeforeUnload  2 | 3 | 3.2 | 4 | IE4 | N | O  The page is about to be unloaded from its current context.
onError  2 | 3 | 3.2 | 4 | IE4 | N3 | O  An error has occurred during the loading of external page dependencies or during the processing of a script.
onLoad  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  The document or other external dependency has finished loading to the browser.
onMove  2 | 3 | 3.2 | 4 | IE | N4 | O  The browser window has been moved.
onResize  2 | 3 | 3.2 | 4 | IE4 | N4 | O  The window/object has been resized.
onScroll  2 | 3 | 3.2 | 4 | IE4 | N | O  The element's scrollbar position has been changed.
onStop  2 | 3 | 3.2 | 4 | IE5 | N | O The browser's Stop button has been activated or the document is unloading.
onUnload  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  The page is unloading from its current context.

Form Events
Event    Support    Description
onBlur  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  The current element has lost focus (by keyboard tabbing or mouse.)
onChange  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  The current element has lost focus (by keyboard or mouse) and the element's contents have changed.
onFocus  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  The element has received focus.
onReset  2 | 3 | 3.2 | 4 | IE4 | N3 | O3  A form's RESET button has been activated.
onSubmit  2 | 3 | 3.2 | 4 | IE3 | N2 | O3  A form's submittal process is beginning.

Marquee Events
Event    Support    Description
onBounce  2 | 3 | 3.2 | 4 | IE4 | N | O  The content of the Marquee element has moved to the boundary of the Marquee display area.
onFinish  2 | 3 | 3.2 | 4 | IE4 | N | O  The Marquee element has finished its prescribed movement pattern.
onStart  2 | 3 | 3.2 | 4 | IE4 | N | O  The Marquee element is beginning its prescribed movement pattern.

Editing Events
Event    Support    Description
onBeforeCopy  2 | 3 | 3.2 | 4 | IE5 | N | O  A selection is about to be copied to the system clipboard.
onBeforeCut  2 | 3 | 3.2 | 4 | IE5 | N | O  All or a portion of the element is about to be removed (cut) from the document and moved to the system clipboard.
onBeforeEditFocus  2 | 3 | 3.2 | 4 | IE5 | N | O The current element is about to enter an "active" state.
onBeforePaste  2 | 3 | 3.2 | 4 | IE5 | N | O  Content is about to be transferred (pasted) from the system clipboard.
onBeforeUpdate  2 | 3 | 3.2 | 4 | IE5 | N | O  Notifies the target element before the contents of the system clipboard are pasted.
onContextMenu  2 | 3 | 3.2 | 4 | IE5 | N | O The right mouse button (or its equivalent keyboard sequence) has been activated for an element.
onCopy  2 | 3 | 3.2 | 4 | IE5 | N | O  All or a portion of the element has been selected and copied to the system clipboard.
onCut  2 | 3 | 3.2 | 4 | IE5 | N | O  All or a portion of the element has been removed (cut) from the document and moved to the system clipboard.
onDrag  2 | 3 | 3.2 | 4 | IE5 | N | O  Continually notifies the source element that a drag operation is occurring.
onDragDrop  2 | 3 | 3.2 | 4 | IE | N4 | O  An external resource has been dropped into a window or frame.
onDragEnd  2 | 3 | 3.2 | 4 | IE5 | N | O  Notifies the source element that a drag operation has ended (mouse has been released.)
onDragEnter  2 | 3 | 3.2 | 4 | IE5 | N | O  Notifies the target element when the contents being dragged have entered a valid target.
onDragLeave  2 | 3 | 3.2 | 4 | IE5 | N | O  Notifies the target element when the mouse moves out of a valid target during a drag operation.
onDragOver  2 | 3 | 3.2 | 4 | IE5 | N | O  Continually notifies the target element when the contents being dragged are within a valid target.
onDragStart  2 | 3 | 3.2 | 4 | IE4 | N | O  Notifies the source element when a drag operation begins.
onDrop  2 | 3 | 3.2 | 4 | IE5 | N | O  The mouse button has been released during a drag operation.
onLoseCapture  2 | 3 | 3.2 | 4 | IE5 | N | O  The element has lost mouse selection capture.
onPaste  2 | 3 | 3.2 | 4 | IE5 | N | O  Content has been transferred (pasted) from the system clipboard.
onSelect *  2 | 3 | 3.2 | 4 | IE4 | N | O  Text content has been selected in a form field text entry element.
onSelectStart  2 | 3 | 3.2 | 4 | IE4 | N | O  Content selection has begun.

Data Binding Events
Event    Support    Description
onAfterUpdate  2 | 3 | 3.2 | 4 | IE4 | N | O Data has finished transfer from the source element to the data source object.
onCellChange  2 | 3 | 3.2 | 4 | IE5 | N | O Data has changed in a data source provider.
onDataAvailable  2 | 3 | 3.2 | 4 | IE4 | N | O Data has arrived asynchronously from a data source object.
onDatasetChanged  2 | 3 | 3.2 | 4 | IE4 | N | O Data in the data source object has changed.
onDatasetComplete  2 | 3 | 3.2 | 4 | IE4 | N | O All currently available data has been loaded from the data source object.
onErrorUpdate  2 | 3 | 3.2 | 4 | IE4 | N | O onBeforeUpdate has cancelled the data transfer. Takes place of onAfterUpdate event.
onRowEnter  2 | 3 | 3.2 | 4 | IE5 | N | O The current row in the data source object has changed and new data is available.
onRowExit  2 | 3 | 3.2 | 4 | IE5 | N | O The current row is about to be changed in the data source object.
onRowsDelete  2 | 3 | 3.2 | 4 | IE5 | N | O Rows are about to be deleted from the current Data Source Object recordset.
onRowsInserted  2 | 3 | 3.2 | 4 | IE5 | N | O Rows have just been inserted into the current Data Source Object recordset.

Misc Events
Event    Support    Description
onAfterPrint  2 | 3 | 3.2 | 4 | IE5 | N | O The document has just been printed.
onBeforePrint  2 | 3 | 3.2 | 4 | IE5 | N | O The state just before the document is to be printed.
onFilterChange  2 | 3 | 3.2 | 4 | IE4 | N | O The state of an element has been changed by a filter or filter transition has been completed.
onHelp  2 | 3 | 3.2 | 4 | IE4 | N | O The user has pressed the F1 key or HELP from the browser menu for this element.
onPropertyChange  2 | 3 | 3.2 | 4 | IE5 | N | O One or more of the element's properties have changed.
onReadyStateChange  2 | 3 | 3.2 | 4 | IE4 | N | O The element has changed its ReadyState.

Event Types: Generic | Page | Form | Marquee | Editing | Data Binding | Misc

Boring Copyright Stuff...