Please visit our sponsors !
XHTML Event Attributes
Window Events
Only valid in body and frameset
| Attributes: |
Values: |
Description: |
| onload |
script |
Script to be run when a document loads
|
| onunload |
script |
Script to be run when a document unloads
|
Form Element Events
Only valid in form elements.
| Attributes: |
Values: |
Description: |
| onchange |
script |
Script to be run when the element changes
|
| onsubmit |
script |
Script to be run when the form is submitted
|
| onreset |
script |
Script to be run when the form is reset
|
| onselect |
script |
Script to be run when the element is selected
|
| onblur |
script |
Script to be run when the element loses focus
|
| onfocus |
script |
Script to be run when the element gets the focus
|
Keyboard Events
Not valid in: base, bdo, br, frame, frameset,
head, html, iframe, meta, param, script, style, title.
| Attributes: |
Values: |
Description: |
| onkeydown |
script |
What to do when key pressed
|
| onkeypress |
script |
What to do when key pressed and released
|
| onkeyup |
script |
What to do when key released
|
Mouse Events
Not valid in: base, bdo, br, frame, frameset,
head, html, iframe, meta, param, script, style, title.
| Attributes: |
Values: |
Description: |
| onclick |
script |
What to do on a mouse click
|
| ondblclick |
script |
What to do on a mouse doubleclick
|
| onmousedown |
script |
What to do when mouse button is pressed
|
| onmousemove |
script |
What to do when mouse pointer moves
|
| onmouseover |
script |
What to do when mouse pointer moves over an
element
|
| onmouseout |
script |
What to do when mouse pointer moves out of an
element
|
| onmouseup |
script |
What to do when mouse button is released
|
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|