*** Welcome to piglix ***

DOM events


DOM (Document Object Model) events allow event-driven programming languages like JavaScript, JScript, ECMAScript, VBScript and Java to register various event handlers/listeners on the element nodes inside a DOM tree, e.g. HTML, XHTML, XUL and SVG documents.

Historically, like DOM, the event models used by various web browsers had some significant differences. This caused compatibility problems. To combat this, the event model was standardized by the W3C in DOM Level 2.

There is a huge collection of events that can be generated by most element nodes:

Note that the event classification above is not exactly the same as W3C's classification.

For elements, it fires when the target element and all of its content has finished loading

For elements, it fires when the target element or any of its content has been removed

Note that the events whose names start with “DOM” are currently not well supported, and for this and other performance reasons are deprecated by the W3C in DOM Level 3. Mozilla and Opera support DOMAttrModified, DOMNodeInserted, DOMNodeRemoved and DOMCharacterDataModified. Chrome and Safari support these events, except for DOMAttrModified.

Web browsers running on touch-enabled devices, such as Apple's iOS and Google's Android, generate additional events.


...
Wikipedia

...