The Event Name for each Event Handler can be derived simply by removing the "on" prefix from the Event Handler. That is the Event Handler onevent becomes event. EG: onclick becomes click.

Here is a list of the basic events:

  • Document
    • load
    • unload
    • resize
  • Keyboard
    • keypress
    • keydown
    • keyup
  • Mouse click
    • mousedown
    • mouseup
    • click
    • dblclick
  • Mouse movement
    • mousemove
    • mouseover
    • mouseout
  • Focus
    • focus (receives focus)
    • blur (loses focus)
  • Typable controls
    • change (losing focus after modification)
    • select (changing characters while dragging)

The "4I6" column is a binary string, where the left most bit is for NN4, the middle bit is IE4, and the rightmost bit is NS6. [Actually, I haven't stuck in the NS6 bit yet.]

4I6 Event
Handler
Executes JavaScript code...

11

onabort ... when the user aborts the loading of an image.

01

onafterupdate  

01

onbeforeunload    

01

onbeforeupdate    

11

onblur ... when a form element loses focus or when a window or frame loses focus.

01

onbounce    

11

onchange ... when a Select, Text, or Textarea field loses focus and its value has been modified

11

onclick ... when an object on a form is clicked.

01

ondataavailable    

01

ondatasetchanged    

01

ondatasetcomplete    

11

oncblclick ... when the user double-clicks a form element or a link.

10

ondragdrop ... when the user drops an object onto the browser window, such as dropping a file.

01

ondragstart    

11

onerror ... when the loading of a document or image causes an error.

01

onerrorupdate    

01

onfilterchange    

01

onfinish    

11

onfocus ... when a window, frame, or frameset receives focus or when a form element receives input focus.

01

onhelp  

11

onkeydown ... when the user depresses a key.

11

onkeypress ... when the user presses or holds down a key.

11

onkeyup ... when the user releases a key.

11

onload ... when the browser finishes loading a window or all frames within a <frameset> tag.

11

onmousedown ... when the user depresses a mouse button.

11

onmousemove ... when the user moves the cursor.

11

onmouseout ... each time the mouse pointer leaves an area (client-side image map) or link from inside that area or link.

11

onmouseover ... once each time the mouse pointer moves over an object or area from outside that object or area.

11

onmouseup ... when the user releases a mouse button.

10

onmove ... when the user or script moves a window or frame.

01

onreadystatechange    

11

onreset ... when a user resets a form (clicks a Reset button).

11

onresize ... when a user or script resizes a window or frame.

01

onrowenter    

01

onrowexit  

01

onscroll    

11

onselect ... when a user selects some of the text within a text or textarea field.

01

onselectstart    

01

onstart    

11

onsubmit ... when a user submits a form.

11

onunload ... when the user exits a document.


GeorgeHernandez.comSome rights reserved