DOM0 events are declarative events defined in the HTML and XHTML specifications as Intrinsic Events:
Internal events are attributes that are used in conjunction with elements that may have specific events when certain actions are performed by the user. The attributes specified in the following table are added to the attribute set for their respective elements only if the modules defining these elements are selected.
Some elements of the markup language may have associated event handlers that are activated when certain events occur. User agents should be able to identify these elements associated with static event handlers (i.e., Content-related, not script-related). In HTML 4 ([HTML4], section 18.2.3), internal events are defined by attributes starting with the "on" prefix: onblur, onchange, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onreset, onselect, onsubmit, and onunload .
Internet Explorer has the correct scope for event handlers defined using the DOM Level 0 property assignment method, but not when using attachEvent() .
The Level 0 DOM supports the following nodeLists:
document.images [], which grants access to all images on the page.
document.forms [], which grants access to all forms on the page.
document.forms []. elements [], which grants access to all form fields in one form, whatever their tag name. This nodeList is unique to the Level 0 DOM; the W3C DOM does not have a similar construct.
document.links [], which grants access to all links () on the page.
document.anchors [], which grants access to all anchors () on the page.
Focusing events defined in this specification occur in a predetermined order relative to each other. The following is a typical sequence of events when the focus shifts between elements (this order assumes that no element is focused):
Event Name Notes
1. focusin Sent before first target element receives focus
2. focus Sent after first target element receives focus
3. focusout Sent before first target element loses focus
4. focusin Sent before second target element receives focus
5. blur Sent after first target element loses focus
6. focus Sent after second target element receives focus
The following is a typical sequence of events when focus shifts between elements, including the deprecated DOMFocusIn and DOMFocusOut events. The given order assumes that not a single element is initially focused.
C.2.1 Legacy FocusEvent event order
Event Name Notes
1. focusin Sent before first target element receives focus
2. focus Sent after first target element receives focus
3. DOMFocusIn If supported
4. focusout Sent before first target element loses focus
5. focusin Sent before second target element receives focus
6. blur Sent after first target element loses focus
7. DOMFocusOut If supported
8. focus Sent after second target element receives focus
9. DOMFocusIn If supported
HTML events are required events defined in the DOM specification as HTMLEvents:
<iframe src="https://www.w3.org/DOM/Graphics/dom2-map.svg" width="900" height="400"></iframe> <img src="https://www.w3.org/TR/DOM-Level-3-Events/images/eventflow.svg" width="400" height="400"/>
References