EventTarget

The EventTarget JS EventTarget creates a new EventTarget object, which can be used by developers to dispatch and listen for events.

Syntax

target = new EventTarget();

Examples

1 · create

2 · dispatch

3 · listen

addEventListener

dispatchEvent

removeEventListener

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu