EventTarget - Web APIs | MDN

Constructor

EventTarget()

Creates a new EventTarget object instance.

Instance methods

EventTarget.addEventListener()

Registers an event handler of a specific event type on the EventTarget.

EventTarget.removeEventListener()

Removes an event listener from the EventTarget.

EventTarget.dispatchEvent()

Dispatches an event to this EventTarget.

Specifications

Specification
DOM
# interface-eventtarget

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.