Your host:
Stephen Chapman
What Javascript event handlers are there and what do they do?
- onmouseover executes when the mouse pointer passes onto the field
- onmouseout executes when the mouse pointer leaves the field
- onclick executes when you click on the field
- onfocus executes when the form field gets the focus
- onblur executes when the form field loses the focus
- onchange executes when the form field loses the focus but only if the field contents have changed
- onselect executes when the form field loses the focus if part or all of the field has been selected (highlighted)
- onsubmit executes when the form's submit button has been pressed
- onload used on the body statement to attach code that is to be executed after the page is loaded
- onunload used on the body statement to attach code to execute when the page is closed

Add to del.icio.us