interface GlobalEventHandlers {
    onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
    onanimationcancel:
        | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
        | null;
    onanimationend:
        | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
        | null;
    onanimationiteration:
        | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
        | null;
    onanimationstart:
        | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
        | null;
    onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
    onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onbeforetoggle:
        | ((this: GlobalEventHandlers, ev: ToggleEvent) => any)
        | null;
    onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
    oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    oncontextmenu:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
    oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
    ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onerror: OnErrorEventHandler;
    onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
    onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
    ongotpointercapture:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
    onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
    onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
    onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onlostpointercapture:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
    onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onpointercancel:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    onpointerdown:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    onpointerenter:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    onpointerleave:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    onpointermove:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    onpointerover:
        | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
        | null;
    onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
    onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
    onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onsecuritypolicyviolation:
        | (
            (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any
        )
        | null;
    onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
    onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
    ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
    ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
    ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
    ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
    ontransitioncancel:
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
        | null;
    ontransitionend:
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
        | null;
    ontransitionrun:
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
        | null;
    ontransitionstart:
        | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
        | null;
    onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    onwebkitanimationend:
        | ((this: GlobalEventHandlers, ev: Event) => any)
        | null;
    onwebkitanimationiteration:
        | ((this: GlobalEventHandlers, ev: Event) => any)
        | null;
    onwebkitanimationstart:
        | ((this: GlobalEventHandlers, ev: Event) => any)
        | null;
    onwebkittransitionend:
        | ((this: GlobalEventHandlers, ev: Event) => any)
        | null;
    onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
    addEventListener<K extends keyof GlobalEventHandlersEventMap>(
        type: K,
        listener: (
            this: GlobalEventHandlers,
            ev: GlobalEventHandlersEventMap[K],
        ) => any,
        options?: boolean | AddEventListenerOptions,
    ): void;
    addEventListener(
        type: string,
        listener: EventListenerOrEventListenerObject,
        options?: boolean | AddEventListenerOptions,
    ): void;
    removeEventListener<K extends keyof GlobalEventHandlersEventMap>(
        type: K,
        listener: (
            this: GlobalEventHandlers,
            ev: GlobalEventHandlersEventMap[K],
        ) => any,
        options?: boolean | EventListenerOptions,
    ): void;
    removeEventListener(
        type: string,
        listener: EventListenerOrEventListenerObject,
        options?: boolean | EventListenerOptions,
    ): void;
}
Hierarchy
Index

Properties

onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null
onanimationcancel:
    | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
    | null
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null
onanimationiteration:
    | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
    | null
onanimationstart:
    | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
    | null
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null
ongotpointercapture:
    | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    | null
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null

MDN Reference

onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null
onlostpointercapture:
    | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
    | null
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null

Available only in secure contexts.

MDN Reference

onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null
onsecuritypolicyviolation:
    | ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any)
    | null
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null
ontransitioncancel:
    | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    | null
ontransitionend:
    | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    | null
ontransitionrun:
    | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    | null
ontransitionstart:
    | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
    | null
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null

This is a legacy alias of onanimationend.

MDN Reference

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

This is a legacy alias of onanimationiteration.

MDN Reference

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

This is a legacy alias of onanimationstart.

MDN Reference

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

This is a legacy alias of ontransitionend.

MDN Reference

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

Methods