- Among other enhanced options introduced in HTML 4.0., there is an option, which allows HTML events produce certain actions in browsers, for instance, perform script, when user clicks the HTML element.
- Here goes a list of attributes divided into sections.
- Window events (these events are accepted in frameset and body elements)
- Onload – the script is performed after the document is loaded
- Onunload - the script is performed after the document is unloaded
- Form events (are accepted in forms elements only)
- Onchange is performed if the element is altered
- Onsubmit is performed after form submission
- Onreset is performed after form reset
- Onselect Is performed after element selection
- Onblur is performed when the element is not in focus
- Onfocus is performed when the element is in focus
- Keyboard-related events
- (not accepted for frame, base, bdo, br, html, frameset, head, iframe, meta, script, param, style, and title elements)
- Onkeydown – defines an action, which is performed after pressing the key
- onkeypress– defines an action, which is performed after pressing and releasing the key
- onkeyup – defines an action, which is performed after releasing the key
- Mouse-related events
- onclick– defines an action, which is performed by mouse click
- ondblclick - defines an action, which is performed by double- mouse click
- onmousedown - defines an action, which is performed when the mouse is pressed
- onmousemove- defines an action, which is performed when the pointer is moving
- onmouseout- defines an action, which is performed when the pointer is removed from the element
- onmouseover - defines an action, which is performed when the pointer is over the element
- onmouseup - defines an action, which is performed when the mouse is released
-
- HTML URLs
- HTML scripts
- HTML URL encode
- HTML webserver


