From W3C Wiki
< DOM‎ | domcore
Jump to: navigation, search


The EventTarget interface must be implemented by all the objects which could be event targets in an implementation which supports an event flow. The interface allows registration and removal of event listeners, and dispatch of events to an event target.


Name Description
addEventListener(type, listener, capture) Registers an event listener.
removeEventListener(type, listener, capture) Removes an event listener.
dispatchEvent(event) Dispatches an event into the implementation's event model.

DOM Core reference

DOM Core specification defines the Interface EventTarget in 4.3 Interface EventTarget.