Dynamic HTML allows to create really interactive web-pages. It becomes possible using events in HTML. HTML can process events from keyboard and mouse, and also some specific events, for example, occurring where form's data was changed. For processing of events data you may use JavaScript or VBScript.
All HTML events are listed in table below.
List of keyboard events |
onkeydown | Occurs when a key is pressed |
onkeypress | Occurs when the key is pressed and released |
onkeyup | Occurs when the key is released |
onhelp | Occurs when the F1 key if pressed |
List of mouse events |
onmousedown | Occurs where mouse button is pressed. |
onmousemove | Occurs where mouse points moves above an element. |
onmouseup | Occurs where mouse button is released. |
onmouseout | Occurs when mouse pointer moves out of an element |
onclick | Occurs on a mouse click |
ondblclick | Occurs on a mouse double click |
List of focus events |
onfocus | Occurs where element get a focus |
onblur | Occurs where element lost a focus |
List of other tag-specific events |
onabort | Occurs if loading of picture is aborted. this event occurs only in <img> tag. |
onerror | Occurs on error of loading picture (for example, if file not found). this event occurs only in <img> tag. |
onchange | Occurs where content of object is changes. Occurs in checkboxes, radioboxes, passwordboxes, textboxes. |
onload | Occurs where page loading is complete. Uses in <body> tag. |
onselect | Occurs where a fragment of text was selected. Uses in text <input> elements: text, password, textarea. |
onsubmit | Occurs before form data will submitted. |
From: http://www.tufat.com/html_tutorials/HTMLEvents.php