Classes
Event
Extended by
Implements
Constructors
new Event()
new Event(type
, options
?): Event
Parameters
Parameter | Type |
---|---|
type | string |
options ? | EventInit |
Returns
Properties
Property | Modifier | Type |
---|---|---|
AT_TARGET | readonly | 2 |
BUBBLING_PHASE | readonly | 3 |
CAPTURING_PHASE | readonly | 1 |
NONE | readonly | 0 |
bubbles | readonly | boolean |
cancelBubble | public | boolean |
cancelable | readonly | boolean |
composed | readonly | boolean |
currentTarget | readonly | null | EventTarget |
defaultPrevented | readonly | boolean |
eventPhase | readonly | number |
isTrusted | readonly | boolean |
returnValue | public | boolean |
srcElement | readonly | null | EventTarget |
target | readonly | null | EventTarget |
timeStamp | readonly | number |
type | readonly | string |
AT_TARGET | readonly | 2 |
BUBBLING_PHASE | readonly | 3 |
CAPTURING_PHASE | readonly | 1 |
NONE | readonly | 0 |
Methods
composedPath()
composedPath(): EventTarget
[]
Returns
Implementation of
globalThis.Event.composedPath
initEvent()
initEvent(type
, bubbles
?, cancelable
?): void
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Implementation of
globalThis.Event.initEvent
preventDefault()
preventDefault(): void
Returns
void
Implementation of
globalThis.Event.preventDefault
stopImmediatePropagation()
stopImmediatePropagation(): void
Returns
void
Implementation of
globalThis.Event.stopImmediatePropagation
stopPropagation()
stopPropagation(): void
Returns
void
Implementation of
globalThis.Event.stopPropagation