• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Intrinsic Events

Intrinsic Events

An intrinsic event determines when an associated script will run. However, not every intrinsic event works with every HTML element. This table illustrates which events and tags work together. For more information on associating a script with an intrinsic event, consult Triggering a Script on page 294.

EVENTWORKS WITHWHEN
ONBLURA, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREAthe visitor leaves an element that was previously in focus (see ONFOCUS below)
ONCHANGEINPUT, SELECT, TEXTAREAthe visitor modifies the value or contents of the element
ONCLICKAll elements except APPLET, BASE, BASEFONT, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, META, PARAM, SCRIPT, STYLE, TITLEthe visitor clicks on the specified area
ONDBLCLICKSame as ONCLICKthe visitor double clicks the specified area
ONFOCUSA, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREAthe visitor selects, clicks, or tabs to the specified element
ONKEYDOWNINPUT (of type NAME or PASSWORD), TEXTAREAthe visitor types something in the specified element
ONKEYPRESSINPUT (of type NAME or PASSWORD), TEXTAREAthe visitor types something in the specified element
ONKEYUPINPUT (of type NAME or PASSWORD), TEXTAREAthe visitor lets go of the key after typing in the specified element
ONLOADBODY, FRAMESETthe page is loaded in the browser
ONMOUSEDOWNSame as ONCLICKthe visitor presses the mouse button down over the element
ONMOUSEMOVESame as ONCLICKthe visitor moves the mouse over the specified element after having pointed at it
ONMOUSEOUTSame as ONCLICKthe visitor moves the mouse away from the specified element after having been over it
ONMOUSEOVERSame as ONCLICKthe visitor points the mouse at the element
ONMOUSEUPSame as ONCLICKthe visitor lets the mouse button go after having clicked on the element
ONRESETFORM (not INPUT of type RESET)the visitor clicks the form's reset button
ONSELECTINPUT (of type NAME or PASSWORD), TEXTAREAthe visitor selects one or more characters or words in the element
ONSUBMITFORM (not INPUT of type SUBMIT)the visitor clicks the form's submit button
ONUNLOADBODY, FRAMESETthe browser loads a different page after the specified page had been loaded



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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