Skip to main content

GlobalEventHandlers

Extended by

Methods

addEventListener()

Call Signature

addEventListener<K>(
type,
listener,
options?
): void;
Type Parameters
Type Parameter
K extends keyof GlobalEventHandlersEventMap
Parameters
ParameterType
typeK
listener(this, ev) => any
options?boolean | AddEventListenerOptions
Returns

void

Call Signature

addEventListener(
type,
listener,
options?
): void;
Parameters
ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | AddEventListenerOptions
Returns

void


removeEventListener()

Call Signature

removeEventListener<K>(
type,
listener,
options?
): void;
Type Parameters
Type Parameter
K extends keyof GlobalEventHandlersEventMap
Parameters
ParameterType
typeK
listener(this, ev) => any
options?boolean | EventListenerOptions
Returns

void

Call Signature

removeEventListener(
type,
listener,
options?
): void;
Parameters
ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | EventListenerOptions
Returns

void

Properties

onabort

onabort: ((this, ev) => any) | null;

MDN Reference


onanimationcancel

onanimationcancel: ((this, ev) => any) | null;

MDN Reference


onanimationend

onanimationend: ((this, ev) => any) | null;

MDN Reference


onanimationiteration

onanimationiteration: ((this, ev) => any) | null;

MDN Reference


onanimationstart

onanimationstart: ((this, ev) => any) | null;

MDN Reference


onauxclick

onauxclick: ((this, ev) => any) | null;

MDN Reference


onbeforeinput

onbeforeinput: ((this, ev) => any) | null;

MDN Reference


onbeforematch

onbeforematch: ((this, ev) => any) | null;

MDN Reference


onbeforetoggle

onbeforetoggle: ((this, ev) => any) | null;

MDN Reference


onblur

onblur: ((this, ev) => any) | null;

MDN Reference


oncancel

oncancel: ((this, ev) => any) | null;

MDN Reference


oncanplay

oncanplay: ((this, ev) => any) | null;

MDN Reference


oncanplaythrough

oncanplaythrough: ((this, ev) => any) | null;

MDN Reference


onchange

onchange: ((this, ev) => any) | null;

MDN Reference


onclick

onclick: ((this, ev) => any) | null;

MDN Reference


onclose

onclose: ((this, ev) => any) | null;

MDN Reference


oncommand

oncommand: ((this, ev) => any) | null;

MDN Reference


oncontextlost

oncontextlost: ((this, ev) => any) | null;

MDN Reference


oncontextmenu

oncontextmenu: ((this, ev) => any) | null;

MDN Reference


oncontextrestored

oncontextrestored: ((this, ev) => any) | null;

MDN Reference


oncopy

oncopy: ((this, ev) => any) | null;

MDN Reference


oncuechange

oncuechange: ((this, ev) => any) | null;

MDN Reference


oncut

oncut: ((this, ev) => any) | null;

MDN Reference


ondblclick

ondblclick: ((this, ev) => any) | null;

MDN Reference


ondrag

ondrag: ((this, ev) => any) | null;

MDN Reference


ondragend

ondragend: ((this, ev) => any) | null;

MDN Reference


ondragenter

ondragenter: ((this, ev) => any) | null;

MDN Reference


ondragleave

ondragleave: ((this, ev) => any) | null;

MDN Reference


ondragover

ondragover: ((this, ev) => any) | null;

MDN Reference


ondragstart

ondragstart: ((this, ev) => any) | null;

MDN Reference


ondrop

ondrop: ((this, ev) => any) | null;

MDN Reference


ondurationchange

ondurationchange: ((this, ev) => any) | null;

MDN Reference


onemptied

onemptied: ((this, ev) => any) | null;

MDN Reference


onended

onended: ((this, ev) => any) | null;

MDN Reference


onerror

onerror: OnErrorEventHandler;

MDN Reference


onfocus

onfocus: ((this, ev) => any) | null;

MDN Reference


onformdata

onformdata: ((this, ev) => any) | null;

MDN Reference


ongotpointercapture

ongotpointercapture: ((this, ev) => any) | null;

MDN Reference


oninput

oninput: ((this, ev) => any) | null;

MDN Reference


oninvalid

oninvalid: ((this, ev) => any) | null;

MDN Reference


onkeydown

onkeydown: ((this, ev) => any) | null;

MDN Reference


onkeypress

onkeypress: ((this, ev) => any) | null;

Deprecated

MDN Reference


onkeyup

onkeyup: ((this, ev) => any) | null;

MDN Reference


onload

onload: ((this, ev) => any) | null;

MDN Reference


onloadeddata

onloadeddata: ((this, ev) => any) | null;

MDN Reference


onloadedmetadata

onloadedmetadata: ((this, ev) => any) | null;

MDN Reference


onloadstart

onloadstart: ((this, ev) => any) | null;

MDN Reference


onlostpointercapture

onlostpointercapture: ((this, ev) => any) | null;

MDN Reference


onmousedown

onmousedown: ((this, ev) => any) | null;

MDN Reference


onmouseenter

onmouseenter: ((this, ev) => any) | null;

MDN Reference


onmouseleave

onmouseleave: ((this, ev) => any) | null;

MDN Reference


onmousemove

onmousemove: ((this, ev) => any) | null;

MDN Reference


onmouseout

onmouseout: ((this, ev) => any) | null;

MDN Reference


onmouseover

onmouseover: ((this, ev) => any) | null;

MDN Reference


onmouseup

onmouseup: ((this, ev) => any) | null;

MDN Reference


onpaste

onpaste: ((this, ev) => any) | null;

MDN Reference


onpause

onpause: ((this, ev) => any) | null;

MDN Reference


onplay

onplay: ((this, ev) => any) | null;

MDN Reference


onplaying

onplaying: ((this, ev) => any) | null;

MDN Reference


onpointercancel

onpointercancel: ((this, ev) => any) | null;

MDN Reference


onpointerdown

onpointerdown: ((this, ev) => any) | null;

MDN Reference


onpointerenter

onpointerenter: ((this, ev) => any) | null;

MDN Reference


onpointerleave

onpointerleave: ((this, ev) => any) | null;

MDN Reference


onpointermove

onpointermove: ((this, ev) => any) | null;

MDN Reference


onpointerout

onpointerout: ((this, ev) => any) | null;

MDN Reference


onpointerover

onpointerover: ((this, ev) => any) | null;

MDN Reference


onpointerrawupdate

onpointerrawupdate: ((this, ev) => any) | null;

Available only in secure contexts.

MDN Reference


onpointerup

onpointerup: ((this, ev) => any) | null;

MDN Reference


onprogress

onprogress: ((this, ev) => any) | null;

MDN Reference


onratechange

onratechange: ((this, ev) => any) | null;

MDN Reference


onreset

onreset: ((this, ev) => any) | null;

MDN Reference


onresize

onresize: ((this, ev) => any) | null;

MDN Reference


onscroll

onscroll: ((this, ev) => any) | null;

MDN Reference


onscrollend

onscrollend: ((this, ev) => any) | null;

MDN Reference


onsecuritypolicyviolation

onsecuritypolicyviolation: ((this, ev) => any) | null;

MDN Reference


onseeked

onseeked: ((this, ev) => any) | null;

MDN Reference


onseeking

onseeking: ((this, ev) => any) | null;

MDN Reference


onselect

onselect: ((this, ev) => any) | null;

MDN Reference


onselectionchange

onselectionchange: ((this, ev) => any) | null;

MDN Reference


onselectstart

onselectstart: ((this, ev) => any) | null;

MDN Reference


onslotchange

onslotchange: ((this, ev) => any) | null;

MDN Reference


onstalled

onstalled: ((this, ev) => any) | null;

MDN Reference


onsubmit

onsubmit: ((this, ev) => any) | null;

MDN Reference


onsuspend

onsuspend: ((this, ev) => any) | null;

MDN Reference


ontimeupdate

ontimeupdate: ((this, ev) => any) | null;

MDN Reference


ontoggle

ontoggle: ((this, ev) => any) | null;

MDN Reference


ontouchcancel?

optional ontouchcancel?: ((this, ev) => any) | null;

MDN Reference


ontouchend?

optional ontouchend?: ((this, ev) => any) | null;

MDN Reference


ontouchmove?

optional ontouchmove?: ((this, ev) => any) | null;

MDN Reference


ontouchstart?

optional ontouchstart?: ((this, ev) => any) | null;

MDN Reference


ontransitioncancel

ontransitioncancel: ((this, ev) => any) | null;

MDN Reference


ontransitionend

ontransitionend: ((this, ev) => any) | null;

MDN Reference


ontransitionrun

ontransitionrun: ((this, ev) => any) | null;

MDN Reference


ontransitionstart

ontransitionstart: ((this, ev) => any) | null;

MDN Reference


onvolumechange

onvolumechange: ((this, ev) => any) | null;

MDN Reference


onwaiting

onwaiting: ((this, ev) => any) | null;

MDN Reference


onwebkitanimationend

onwebkitanimationend: ((this, ev) => any) | null;

Deprecated

This is a legacy alias of onanimationend.

MDN Reference


onwebkitanimationiteration

onwebkitanimationiteration: ((this, ev) => any) | null;

Deprecated

This is a legacy alias of onanimationiteration.

MDN Reference


onwebkitanimationstart

onwebkitanimationstart: ((this, ev) => any) | null;

Deprecated

This is a legacy alias of onanimationstart.

MDN Reference


onwebkittransitionend

onwebkittransitionend: ((this, ev) => any) | null;

Deprecated

This is a legacy alias of ontransitionend.

MDN Reference


onwheel

onwheel: ((this, ev) => any) | null;

MDN Reference