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

11.13. Events

Client-side JavaScript supports a number of event types. Table 11.2 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.

Table 11.2. Event Handlers
Event HandlerSupported By
onAbortImage (JavaScript 1.1)
onBlur,onFocusText elements; Window and all other form elements (1.1)
onChangeSelect, text input elements
onClickButton elements, Link; return false to cancel default action
onDblClickDocument, Link, Image, Button elements (1.2)
onErrorImage, Window (1.1)
onKeyDown 
onKeyPress, onKeyUpDocument, Image, Link, text elements (1.2); return false to cancel
onLoad, onUnloadWindow; Image in 1.1
onMouseDown, onMouseUpDocument, Link, Image, Button elements (1.2); return false to cancel
onMouseOver, onMouseOutLink; Image and Layer (1.2); return true to prevent URL display
onReset, onSubmitForm (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