Event
Module: JavaScript DOM API
#include <Event.idl>
Inherited by AnimationEvent, CustomEvent, ErrorEvent, PopStateEvent, ProgressEvent, PromiseRejectionEvent, TransitionEvent, UIEvent
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| Event | Event(DOMInternedString type, optional EventInit initEvent) |
| void | stopPropagation() |
| void | preventDefault() |
| void | initEvent(optional DOMInternedString eventTypeArg, optional boolean canBubbleArg, optional boolean cancelableArg) |
| void | stopImmediatePropagation() |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| const unsigned short | NONE |
| const unsigned short | CAPTURING_PHASE |
| const unsigned short | AT_TARGET |
| const unsigned short | BUBBLING_PHASE |
| 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 |
Public Functions Documentation
Section titled “Public Functions Documentation”function Event
Section titled “function Event”Event Event( DOMInternedString type, optional EventInit initEvent)function stopPropagation
Section titled “function stopPropagation”void stopPropagation()function preventDefault
Section titled “function preventDefault”void preventDefault()function initEvent
Section titled “function initEvent”void initEvent( optional DOMInternedString eventTypeArg, optional boolean canBubbleArg, optional boolean cancelableArg)function stopImmediatePropagation
Section titled “function stopImmediatePropagation”void stopImmediatePropagation()Public Attributes Documentation
Section titled “Public Attributes Documentation”variable NONE
Section titled “variable NONE”const unsigned short NONE = 0;variable CAPTURING_PHASE
Section titled “variable CAPTURING_PHASE”const unsigned short CAPTURING_PHASE = 1;variable AT_TARGET
Section titled “variable AT_TARGET”const unsigned short AT_TARGET = 2;variable BUBBLING_PHASE
Section titled “variable BUBBLING_PHASE”const unsigned short BUBBLING_PHASE = 3;variable type
Section titled “variable type”readonly attribute DOMString type;variable target
Section titled “variable target”readonly attribute EventTarget target;variable currentTarget
Section titled “variable currentTarget”readonly attribute EventTarget currentTarget;variable eventPhase
Section titled “variable eventPhase”readonly attribute unsigned short eventPhase;variable bubbles
Section titled “variable bubbles”readonly attribute boolean bubbles;variable cancelable
Section titled “variable cancelable”readonly attribute boolean cancelable;variable defaultPrevented
Section titled “variable defaultPrevented”readonly attribute boolean defaultPrevented;variable composed
Section titled “variable composed”readonly attribute boolean composed;© 2026 Coherent Labs. All rights reserved.