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

Event

Description

The Event of Event for JS returns a new event whose type attribute value is set to type. The eventInitDict argument allows for setting the bubbles, cancelable, and composed attributes via object members of the same name.

Syntax

event = new Event(type [, eventInitDict])

Parameters

type

The type of event.

eventInitDict

Allows setting the bubbles, cancelable, and composed attributes.

Examples

1 · type

2 · eventInitDict

3 · eventInitDict · bubbles

4 · eventInitDict · cancelable

5 · eventInitDict · composed

bubbles

cancelable

composed

composedPath

currentTarget

defaultPrevented

eventPhase

isTrusted

preventDefault

stopImmediatePropagation

stopPropagation

target

timeStamp

type

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu