List of supported events

Event

Occurs when…

Applies to

OnClick

the user clicks an element

any element

OnDblClick

the user double-clicks an element

any element

OnMouseDown

the user presses the mouse button while the pointer is over an element (but before she releases the mouse button)

any element

OnMouseUp

the user releases the mouse button while the pointer is over an element

any element

OnMouseOver

the user moves the pointer into an element’s boundaries

any element

OnMouseOut

the user moves the pointer outside an element’s boundaries

any element

OnFocus

a form field receives focus (becomes the target of key presses) or the document window is made active

form fields, documents

OnBlur

a form field loses focus or the document window is made inactive

form fields, documents

OnSelect

the user selects text in a form field

text form fields

OnChange

the user edits text in a form field or changes the selection in a form menu

text form fields, form menus

OnKeyPress

the user presses a key while the insertion point is in a form field or a hyperlink has focus

text form fields, hyperlinks

OnKeyDown

the user completes the down stroke of a key while the insertion point is in a form field or a hyperlink has focus

text form fields, hyperlinks

OnKeyUp

the user completes the up stroke of a key while the insertion point is in a form field or a hyperlink has focus

text form fields, hyperlinks

OnLoad

the browser finishes loading the document or an image

documents, images

OnUnload

the user leaves the document

documents

OnAbort

the user cancels loading the document or an image

documents, images

OnError

the browser encounters an error while loading the document or an image

documents, images

OnResize

the user resizes the document window

documents

OnScroll

the user scrolls the document window

documents

OnFrame[n]

the nth frame of a timeline is reached

timeline frames

Related topics

List of built-in actions

Working with actions and events

List of supported events