Interface GlobalEventHandlers

interface GlobalEventHandlers {
    onabort: ((this, ev) => any);
    onanimationcancel: ((this, ev) => any);
    onanimationend: ((this, ev) => any);
    onanimationiteration: ((this, ev) => any);
    onanimationstart: ((this, ev) => any);
    onauxclick: ((this, ev) => any);
    onbeforeinput: ((this, ev) => any);
    onblur: ((this, ev) => any);
    oncancel: ((this, ev) => any);
    oncanplay: ((this, ev) => any);
    oncanplaythrough: ((this, ev) => any);
    onchange: ((this, ev) => any);
    onclick: ((this, ev) => any);
    onclose: ((this, ev) => any);
    oncontextmenu: ((this, ev) => any);
    oncopy: ((this, ev) => any);
    oncuechange: ((this, ev) => any);
    oncut: ((this, ev) => any);
    ondblclick: ((this, ev) => any);
    ondrag: ((this, ev) => any);
    ondragend: ((this, ev) => any);
    ondragenter: ((this, ev) => any);
    ondragleave: ((this, ev) => any);
    ondragover: ((this, ev) => any);
    ondragstart: ((this, ev) => any);
    ondrop: ((this, ev) => any);
    ondurationchange: ((this, ev) => any);
    onemptied: ((this, ev) => any);
    onended: ((this, ev) => any);
    onerror: OnErrorEventHandlerNonNull;
    onfocus: ((this, ev) => any);
    onformdata: ((this, ev) => any);
    ongotpointercapture: ((this, ev) => any);
    oninput: ((this, ev) => any);
    oninvalid: ((this, ev) => any);
    onkeydown: ((this, ev) => any);
    onkeypress: ((this, ev) => any);
    onkeyup: ((this, ev) => any);
    onload: ((this, ev) => any);
    onloadeddata: ((this, ev) => any);
    onloadedmetadata: ((this, ev) => any);
    onloadstart: ((this, ev) => any);
    onlostpointercapture: ((this, ev) => any);
    onmousedown: ((this, ev) => any);
    onmouseenter: ((this, ev) => any);
    onmouseleave: ((this, ev) => any);
    onmousemove: ((this, ev) => any);
    onmouseout: ((this, ev) => any);
    onmouseover: ((this, ev) => any);
    onmouseup: ((this, ev) => any);
    onpaste: ((this, ev) => any);
    onpause: ((this, ev) => any);
    onplay: ((this, ev) => any);
    onplaying: ((this, ev) => any);
    onpointercancel: ((this, ev) => any);
    onpointerdown: ((this, ev) => any);
    onpointerenter: ((this, ev) => any);
    onpointerleave: ((this, ev) => any);
    onpointermove: ((this, ev) => any);
    onpointerout: ((this, ev) => any);
    onpointerover: ((this, ev) => any);
    onpointerup: ((this, ev) => any);
    onprogress: ((this, ev) => any);
    onratechange: ((this, ev) => any);
    onreset: ((this, ev) => any);
    onresize: ((this, ev) => any);
    onscroll: ((this, ev) => any);
    onscrollend: ((this, ev) => any);
    onsecuritypolicyviolation: ((this, ev) => any);
    onseeked: ((this, ev) => any);
    onseeking: ((this, ev) => any);
    onselect: ((this, ev) => any);
    onselectionchange: ((this, ev) => any);
    onselectstart: ((this, ev) => any);
    onslotchange: ((this, ev) => any);
    onstalled: ((this, ev) => any);
    onsubmit: ((this, ev) => any);
    onsuspend: ((this, ev) => any);
    ontimeupdate: ((this, ev) => any);
    ontoggle: ((this, ev) => any);
    ontouchcancel?: ((this, ev) => any);
    ontouchend?: ((this, ev) => any);
    ontouchmove?: ((this, ev) => any);
    ontouchstart?: ((this, ev) => any);
    ontransitioncancel: ((this, ev) => any);
    ontransitionend: ((this, ev) => any);
    ontransitionrun: ((this, ev) => any);
    ontransitionstart: ((this, ev) => any);
    onvolumechange: ((this, ev) => any);
    onwaiting: ((this, ev) => any);
    onwebkitanimationend: ((this, ev) => any);
    onwebkitanimationiteration: ((this, ev) => any);
    onwebkitanimationstart: ((this, ev) => any);
    onwebkittransitionend: ((this, ev) => any);
    onwheel: ((this, ev) => any);
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
}

Hierarchy (view full)

Properties

onabort: ((this, ev) => any)

Fires when the user aborts the download.

Type declaration

onanimationcancel: ((this, ev) => any)

Type declaration

onanimationend: ((this, ev) => any)

Type declaration

onanimationiteration: ((this, ev) => any)

Type declaration

onanimationstart: ((this, ev) => any)

Type declaration

onauxclick: ((this, ev) => any)

Type declaration

onbeforeinput: ((this, ev) => any)

Type declaration

onblur: ((this, ev) => any)

Fires when the object loses the input focus.

Type declaration

oncancel: ((this, ev) => any)

Type declaration

oncanplay: ((this, ev) => any)

Occurs when playback is possible, but would require further buffering.

Type declaration

oncanplaythrough: ((this, ev) => any)

Type declaration

onchange: ((this, ev) => any)

Fires when the contents of the object or selection have changed.

Type declaration

onclick: ((this, ev) => any)

Fires when the user clicks the left mouse button on the object

Type declaration

onclose: ((this, ev) => any)

Type declaration

oncontextmenu: ((this, ev) => any)

Fires when the user clicks the right mouse button in the client area, opening the context menu.

Type declaration

oncopy: ((this, ev) => any)

Type declaration

oncuechange: ((this, ev) => any)

Type declaration

oncut: ((this, ev) => any)

Type declaration

ondblclick: ((this, ev) => any)

Fires when the user double-clicks the object.

Type declaration

ondrag: ((this, ev) => any)

Fires on the source object continuously during a drag operation.

Type declaration

ondragend: ((this, ev) => any)

Fires on the source object when the user releases the mouse at the close of a drag operation.

Type declaration

ondragenter: ((this, ev) => any)

Fires on the target element when the user drags the object to a valid drop target.

Type declaration

ondragleave: ((this, ev) => any)

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

Type declaration

ondragover: ((this, ev) => any)

Fires on the target element continuously while the user drags the object over a valid drop target.

Type declaration

ondragstart: ((this, ev) => any)

Fires on the source object when the user starts to drag a text selection or selected object.

Type declaration

ondrop: ((this, ev) => any)

Type declaration

ondurationchange: ((this, ev) => any)

Occurs when the duration attribute is updated.

Type declaration

onemptied: ((this, ev) => any)

Occurs when the media element is reset to its initial state.

Type declaration

onended: ((this, ev) => any)

Occurs when the end of playback is reached.

Type declaration

Fires when an error occurs during object loading.

Param: ev

The event.

MDN Reference

onfocus: ((this, ev) => any)

Fires when the object receives focus.

Type declaration

onformdata: ((this, ev) => any)

Type declaration

ongotpointercapture: ((this, ev) => any)

Type declaration

oninput: ((this, ev) => any)

Type declaration

oninvalid: ((this, ev) => any)

Type declaration

onkeydown: ((this, ev) => any)

Fires when the user presses a key.

Type declaration

onkeypress: ((this, ev) => any)

Fires when the user presses an alphanumeric key.

Type declaration

Deprecated

MDN Reference

onkeyup: ((this, ev) => any)

Fires when the user releases a key.

Type declaration

onload: ((this, ev) => any)

Fires immediately after the browser loads the object.

Type declaration

onloadeddata: ((this, ev) => any)

Occurs when media data is loaded at the current playback position.

Type declaration

onloadedmetadata: ((this, ev) => any)

Occurs when the duration and dimensions of the media have been determined.

Type declaration

onloadstart: ((this, ev) => any)

Occurs when Internet Explorer begins looking for media data.

Type declaration

onlostpointercapture: ((this, ev) => any)

Type declaration

onmousedown: ((this, ev) => any)

Fires when the user clicks the object with either mouse button.

Type declaration

onmouseenter: ((this, ev) => any)

Type declaration

onmouseleave: ((this, ev) => any)

Type declaration

onmousemove: ((this, ev) => any)

Fires when the user moves the mouse over the object.

Type declaration

onmouseout: ((this, ev) => any)

Fires when the user moves the mouse pointer outside the boundaries of the object.

Type declaration

onmouseover: ((this, ev) => any)

Fires when the user moves the mouse pointer into the object.

Type declaration

onmouseup: ((this, ev) => any)

Fires when the user releases a mouse button while the mouse is over the object.

Type declaration

onpaste: ((this, ev) => any)

Type declaration

onpause: ((this, ev) => any)

Occurs when playback is paused.

Type declaration

onplay: ((this, ev) => any)

Occurs when the play method is requested.

Type declaration

onplaying: ((this, ev) => any)

Occurs when the audio or video has started playing.

Type declaration

onpointercancel: ((this, ev) => any)

Type declaration

onpointerdown: ((this, ev) => any)

Type declaration

onpointerenter: ((this, ev) => any)

Type declaration

onpointerleave: ((this, ev) => any)

Type declaration

onpointermove: ((this, ev) => any)

Type declaration

onpointerout: ((this, ev) => any)

Type declaration

onpointerover: ((this, ev) => any)

Type declaration

onpointerup: ((this, ev) => any)

Type declaration

onprogress: ((this, ev) => any)

Occurs to indicate progress while downloading media data.

Type declaration

onratechange: ((this, ev) => any)

Occurs when the playback rate is increased or decreased.

Type declaration

onreset: ((this, ev) => any)

Fires when the user resets a form.

Type declaration

onresize: ((this, ev) => any)

Type declaration

onscroll: ((this, ev) => any)

Fires when the user repositions the scroll box in the scroll bar on the object.

Type declaration

onscrollend: ((this, ev) => any)

Type declaration

onsecuritypolicyviolation: ((this, ev) => any)

Type declaration

onseeked: ((this, ev) => any)

Occurs when the seek operation ends.

Type declaration

onseeking: ((this, ev) => any)

Occurs when the current playback position is moved.

Type declaration

onselect: ((this, ev) => any)

Fires when the current selection changes.

Type declaration

onselectionchange: ((this, ev) => any)

Type declaration

onselectstart: ((this, ev) => any)

Type declaration

onslotchange: ((this, ev) => any)

Type declaration

onstalled: ((this, ev) => any)

Occurs when the download has stopped.

Type declaration

onsubmit: ((this, ev) => any)

Type declaration

onsuspend: ((this, ev) => any)

Occurs if the load operation has been intentionally halted.

Type declaration

ontimeupdate: ((this, ev) => any)

Occurs to indicate the current playback position.

Type declaration

ontoggle: ((this, ev) => any)

Type declaration

ontouchcancel?: ((this, ev) => any)

Type declaration

ontouchend?: ((this, ev) => any)

Type declaration

ontouchmove?: ((this, ev) => any)

Type declaration

ontouchstart?: ((this, ev) => any)

Type declaration

ontransitioncancel: ((this, ev) => any)

Type declaration

ontransitionend: ((this, ev) => any)

Type declaration

ontransitionrun: ((this, ev) => any)

Type declaration

ontransitionstart: ((this, ev) => any)

Type declaration

onvolumechange: ((this, ev) => any)

Occurs when the volume is changed, or playback is muted or unmuted.

Type declaration

onwaiting: ((this, ev) => any)

Occurs when playback stops because the next frame of a video resource is not available.

Type declaration

onwebkitanimationend: ((this, ev) => any)

Type declaration

Deprecated

This is a legacy alias of onanimationend.

MDN Reference

onwebkitanimationiteration: ((this, ev) => any)

Type declaration

Deprecated

This is a legacy alias of onanimationiteration.

MDN Reference

onwebkitanimationstart: ((this, ev) => any)

Type declaration

Deprecated

This is a legacy alias of onanimationstart.

MDN Reference

onwebkittransitionend: ((this, ev) => any)

Type declaration

Deprecated

This is a legacy alias of ontransitionend.

MDN Reference

onwheel: ((this, ev) => any)

Type declaration

Methods