WindowEventHandlers
Extended by
Methods
addEventListener()
Call Signature
addEventListener<K>(
type,
listener,
options?
): void;
Type Parameters
| Type Parameter |
|---|
K extends keyof WindowEventHandlersEventMap |
Parameters
| Parameter | Type |
|---|---|
type | K |
listener | (this, ev) => any |
options? | boolean | AddEventListenerOptions |
Returns
void
Call Signature
addEventListener(
type,
listener,
options?
): void;
Parameters
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | AddEventListenerOptions |
Returns
void
removeEventListener()
Call Signature
removeEventListener<K>(
type,
listener,
options?
): void;
Type Parameters
| Type Parameter |
|---|
K extends keyof WindowEventHandlersEventMap |
Parameters
| Parameter | Type |
|---|---|
type | K |
listener | (this, ev) => any |
options? | boolean | EventListenerOptions |
Returns
void
Call Signature
removeEventListener(
type,
listener,
options?
): void;
Parameters
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | EventListenerOptions |
Returns
void
Properties
onafterprint
onafterprint: ((this, ev) => any) | null;
onbeforeprint
onbeforeprint: ((this, ev) => any) | null;
onbeforeunload
onbeforeunload: ((this, ev) => any) | null;
ongamepadconnected
ongamepadconnected: ((this, ev) => any) | null;
ongamepaddisconnected
ongamepaddisconnected: ((this, ev) => any) | null;
onhashchange
onhashchange: ((this, ev) => any) | null;
onlanguagechange
onlanguagechange: ((this, ev) => any) | null;
onmessage
onmessage: ((this, ev) => any) | null;
onmessageerror
onmessageerror: ((this, ev) => any) | null;
onoffline
onoffline: ((this, ev) => any) | null;
ononline
ononline: ((this, ev) => any) | null;
onpagehide
onpagehide: ((this, ev) => any) | null;
onpagereveal
onpagereveal: ((this, ev) => any) | null;
onpageshow
onpageshow: ((this, ev) => any) | null;
onpageswap
onpageswap: ((this, ev) => any) | null;
onpopstate
onpopstate: ((this, ev) => any) | null;
onrejectionhandled
onrejectionhandled: ((this, ev) => any) | null;
onstorage
onstorage: ((this, ev) => any) | null;
onunhandledrejection
onunhandledrejection: ((this, ev) => any) | null;
onunload
onunload: ((this, ev) => any) | null;
Deprecated
The unload event is not reliable, consider visibilitychange or pagehide events.