Skip to content
SiteEmail

Event

Module: JavaScript DOM API

#include <Event.idl>

Inherited by AnimationEvent, CustomEvent, ErrorEvent, PopStateEvent, ProgressEvent, PromiseRejectionEvent, TransitionEvent, UIEvent

Name
EventEvent(DOMInternedString type, optional EventInit initEvent)
voidstopPropagation()
voidpreventDefault()
voidinitEvent(optional DOMInternedString eventTypeArg, optional boolean canBubbleArg, optional boolean cancelableArg)
voidstopImmediatePropagation()
Name
const unsigned shortNONE
const unsigned shortCAPTURING_PHASE
const unsigned shortAT_TARGET
const unsigned shortBUBBLING_PHASE
readonly attribute DOMStringtype
readonly attribute EventTargettarget
readonly attribute EventTargetcurrentTarget
readonly attribute unsigned shorteventPhase
readonly attribute booleanbubbles
readonly attribute booleancancelable
readonly attribute booleandefaultPrevented
readonly attribute booleancomposed
Event Event(
DOMInternedString type,
optional EventInit initEvent
)
void stopPropagation()
void preventDefault()
void initEvent(
optional DOMInternedString eventTypeArg,
optional boolean canBubbleArg,
optional boolean cancelableArg
)
void stopImmediatePropagation()
const unsigned short NONE = 0;
const unsigned short CAPTURING_PHASE = 1;
const unsigned short AT_TARGET = 2;
const unsigned short BUBBLING_PHASE = 3;
readonly attribute DOMString type;
readonly attribute EventTarget target;
readonly attribute EventTarget currentTarget;
readonly attribute unsigned short eventPhase;
readonly attribute boolean bubbles;
readonly attribute boolean cancelable;
readonly attribute boolean defaultPrevented;
readonly attribute boolean composed;