• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

1.12. Events

Client-side JavaScript supports a number of event types. The following table lists the event handlers and the client-side objects that support the handlers. Note that some events, such as onDblClick, are not reliably generated on all platforms.

Event Handler Supported By
onAbort

Image (JavaScript 1.1)
onBlur,
onFocus

Text elements; Window and all other form elements (1.1)
onChange

Select, text input elements
onClick

Button elements, Link. Return false to cancel default action.
onDblClick

Document, Link, Image, Button elements (1.2)
onError

Image, Window (1.1)
onKeyDown,
onKeyPress,
onKeyUp

Document, Image, Link, text elements (1.2). Return false to cancel.
onLoad,
onUnload

Window; Image in 1.1
onMouseDown,
onMouseUp

Document, Link, Image, Button elements (1.2). Return false to cancel.
onMouseOver,
onMouseOut

Link; Image and Layer (1.2). Return true to prevent URL display.
onReset, onSubmit

Form (1.1). Return false to prevent reset or submission.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint