HTML DOM events allow JavaScript to register different event handlers on elements in an HTML document.
Events are normally used in combination with functions, and the function will not be executed before the event occurs (such as when a user clicks a button).
Tip: The event model was standardized by the W3C in DOM Level 2.
DOM: Indicates in which DOM Level the property was introduced.
Method
handleEvent()
Description
Called whenever an event occurs of the event type for which the EventListener interface was registered
DOM
2
Method
createEvent()
Description
DOM
2