dispatchEvent

dispatchEvent dispatches a synthetic event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked; otherwise false.

Syntax

target.dispatchEvent(event)

Examples

1

2

3

4

Internal

addEventListener

EventTarget

removeEventListener

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu