HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

dispatchEvent

Description

The dispatchEvent of EventTarget for JS dispatches a synthetic event 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)

Parameters

event

It allows for signaling that something has occurred.

Examples

1 · true

2 · false