return to homepage

 

Scripts: Javascript

Event Handlers

The following tables lists the main event handlers and how they are activated.

Event Handler Event

onAbort

The user aborts loading an item or document

onBlur

Form event loses focus *

onChange

User interacts with the form event

onClick

The user clicks the mouse on an element

onDblClick

The user double clicks the mouse

onDragDrop

The user drags something and drops it onto the web page

onError

An error occurs while loading a document or item

onFocus

Form element recieves focus *

onKeyDown

The user presses a key on the keyboard

onKeyPress

The user presses and holds a key on the keyboard

onKeyUp

The user releases a key on the keyboard

onLoad

The browser finishes loading a page

onMouseDown

The user presses the mouse button

onMouseMove

The user moves the mouse pointer

onMouseOut

The user moves the mouse pointer out of an object

onMouseOver

The user moves the mouse pointer over an object

onMouseUp

The user releases the mouse button

onMove

A Window frame is moved

onReset

The user requests a form be reset

onResize

A Window frame is resized

onSelect

The user selects some text

onSubmit

The user submits a form

onUnload

The user exits/closes a page

* Focus is when a given object is highlighted by the user

The following is a list of further event handlers that are less well supported.

onAfterUpdate

onDrop

onBeforeUpdate

onHelp

onDrag

onFinish

onDragEnd

onLooseCapture

onDragEnter

onPropertyChange

OnDragLeave

onStart

onDragOver