Skip to content

Vizzu-Story / Exports / VizzuPlayer

Class: VizzuPlayer

Hierarchy

  • HTMLElement

    VizzuPlayer

Constructors

constructor

new VizzuPlayer(): VizzuPlayer

Returns

VizzuPlayer

Inherited from

HTMLElement.constructor

Properties

ATTRIBUTE_NODE

Readonly ATTRIBUTE_NODE: 2

Inherited from

HTMLElement.ATTRIBUTE_NODE


CDATA_SECTION_NODE

Readonly CDATA_SECTION_NODE: 4

node is a CDATASection node.

Inherited from

HTMLElement.CDATA_SECTION_NODE


COMMENT_NODE

Readonly COMMENT_NODE: 8

node is a Comment node.

Inherited from

HTMLElement.COMMENT_NODE


DOCUMENT_FRAGMENT_NODE

Readonly DOCUMENT_FRAGMENT_NODE: 11

node is a DocumentFragment node.

Inherited from

HTMLElement.DOCUMENT_FRAGMENT_NODE


DOCUMENT_NODE

Readonly DOCUMENT_NODE: 9

node is a document.

Inherited from

HTMLElement.DOCUMENT_NODE


DOCUMENT_POSITION_CONTAINED_BY

Readonly DOCUMENT_POSITION_CONTAINED_BY: 16

Set when other is a descendant of node.

Inherited from

HTMLElement.DOCUMENT_POSITION_CONTAINED_BY


DOCUMENT_POSITION_CONTAINS

Readonly DOCUMENT_POSITION_CONTAINS: 8

Set when other is an ancestor of node.

Inherited from

HTMLElement.DOCUMENT_POSITION_CONTAINS


DOCUMENT_POSITION_DISCONNECTED

Readonly DOCUMENT_POSITION_DISCONNECTED: 1

Set when node and other are not in the same tree.

Inherited from

HTMLElement.DOCUMENT_POSITION_DISCONNECTED


DOCUMENT_POSITION_FOLLOWING

Readonly DOCUMENT_POSITION_FOLLOWING: 4

Set when other is following node.

Inherited from

HTMLElement.DOCUMENT_POSITION_FOLLOWING


DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32

Inherited from

HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC


DOCUMENT_POSITION_PRECEDING

Readonly DOCUMENT_POSITION_PRECEDING: 2

Set when other is preceding node.

Inherited from

HTMLElement.DOCUMENT_POSITION_PRECEDING


DOCUMENT_TYPE_NODE

Readonly DOCUMENT_TYPE_NODE: 10

node is a doctype.

Inherited from

HTMLElement.DOCUMENT_TYPE_NODE


ELEMENT_NODE

Readonly ELEMENT_NODE: 1

node is an element.

Inherited from

HTMLElement.ELEMENT_NODE


ENTITY_NODE

Readonly ENTITY_NODE: 6

Inherited from

HTMLElement.ENTITY_NODE


ENTITY_REFERENCE_NODE

Readonly ENTITY_REFERENCE_NODE: 5

Inherited from

HTMLElement.ENTITY_REFERENCE_NODE


NOTATION_NODE

Readonly NOTATION_NODE: 12

Inherited from

HTMLElement.NOTATION_NODE


PROCESSING_INSTRUCTION_NODE

Readonly PROCESSING_INSTRUCTION_NODE: 7

node is a ProcessingInstruction node.

Inherited from

HTMLElement.PROCESSING_INSTRUCTION_NODE


TEXT_NODE

Readonly TEXT_NODE: 3

node is a Text node.

Inherited from

HTMLElement.TEXT_NODE


accessKey

accessKey: string

MDN Reference

Inherited from

HTMLElement.accessKey


accessKeyLabel

Readonly accessKeyLabel: string

MDN Reference

Inherited from

HTMLElement.accessKeyLabel


ariaAtomic

ariaAtomic: string

MDN Reference

Inherited from

HTMLElement.ariaAtomic


ariaAutoComplete

ariaAutoComplete: string

MDN Reference

Inherited from

HTMLElement.ariaAutoComplete


ariaBusy

ariaBusy: string

MDN Reference

Inherited from

HTMLElement.ariaBusy


ariaChecked

ariaChecked: string

MDN Reference

Inherited from

HTMLElement.ariaChecked


ariaColCount

ariaColCount: string

MDN Reference

Inherited from

HTMLElement.ariaColCount


ariaColIndex

ariaColIndex: string

MDN Reference

Inherited from

HTMLElement.ariaColIndex


ariaColSpan

ariaColSpan: string

MDN Reference

Inherited from

HTMLElement.ariaColSpan


ariaCurrent

ariaCurrent: string

MDN Reference

Inherited from

HTMLElement.ariaCurrent


ariaDisabled

ariaDisabled: string

MDN Reference

Inherited from

HTMLElement.ariaDisabled


ariaExpanded

ariaExpanded: string

MDN Reference

Inherited from

HTMLElement.ariaExpanded


ariaHasPopup

ariaHasPopup: string

MDN Reference

Inherited from

HTMLElement.ariaHasPopup


ariaHidden

ariaHidden: string

MDN Reference

Inherited from

HTMLElement.ariaHidden


ariaInvalid

ariaInvalid: string

Inherited from

HTMLElement.ariaInvalid


ariaKeyShortcuts

ariaKeyShortcuts: string

MDN Reference

Inherited from

HTMLElement.ariaKeyShortcuts


ariaLabel

ariaLabel: string

MDN Reference

Inherited from

HTMLElement.ariaLabel


ariaLevel

ariaLevel: string

MDN Reference

Inherited from

HTMLElement.ariaLevel


ariaLive

ariaLive: string

MDN Reference

Inherited from

HTMLElement.ariaLive


ariaModal

ariaModal: string

MDN Reference

Inherited from

HTMLElement.ariaModal


ariaMultiLine

ariaMultiLine: string

MDN Reference

Inherited from

HTMLElement.ariaMultiLine


ariaMultiSelectable

ariaMultiSelectable: string

MDN Reference

Inherited from

HTMLElement.ariaMultiSelectable


ariaOrientation

ariaOrientation: string

MDN Reference

Inherited from

HTMLElement.ariaOrientation


ariaPlaceholder

ariaPlaceholder: string

MDN Reference

Inherited from

HTMLElement.ariaPlaceholder


ariaPosInSet

ariaPosInSet: string

MDN Reference

Inherited from

HTMLElement.ariaPosInSet


ariaPressed

ariaPressed: string

MDN Reference

Inherited from

HTMLElement.ariaPressed


ariaReadOnly

ariaReadOnly: string

MDN Reference

Inherited from

HTMLElement.ariaReadOnly


ariaRequired

ariaRequired: string

MDN Reference

Inherited from

HTMLElement.ariaRequired


ariaRoleDescription

ariaRoleDescription: string

MDN Reference

Inherited from

HTMLElement.ariaRoleDescription


ariaRowCount

ariaRowCount: string

MDN Reference

Inherited from

HTMLElement.ariaRowCount


ariaRowIndex

ariaRowIndex: string

MDN Reference

Inherited from

HTMLElement.ariaRowIndex


ariaRowSpan

ariaRowSpan: string

MDN Reference

Inherited from

HTMLElement.ariaRowSpan


ariaSelected

ariaSelected: string

MDN Reference

Inherited from

HTMLElement.ariaSelected


ariaSetSize

ariaSetSize: string

MDN Reference

Inherited from

HTMLElement.ariaSetSize


ariaSort

ariaSort: string

MDN Reference

Inherited from

HTMLElement.ariaSort


ariaValueMax

ariaValueMax: string

MDN Reference

Inherited from

HTMLElement.ariaValueMax


ariaValueMin

ariaValueMin: string

MDN Reference

Inherited from

HTMLElement.ariaValueMin


ariaValueNow

ariaValueNow: string

MDN Reference

Inherited from

HTMLElement.ariaValueNow


ariaValueText

ariaValueText: string

MDN Reference

Inherited from

HTMLElement.ariaValueText


assignedSlot

Readonly assignedSlot: HTMLSlotElement

MDN Reference

Inherited from

HTMLElement.assignedSlot


attributeStyleMap

Readonly attributeStyleMap: StylePropertyMap

Inherited from

HTMLElement.attributeStyleMap


attributes

Readonly attributes: NamedNodeMap

MDN Reference

Inherited from

HTMLElement.attributes


autocapitalize

autocapitalize: string

Inherited from

HTMLElement.autocapitalize


autofocus

autofocus: boolean

Inherited from

HTMLElement.autofocus


baseURI

Readonly baseURI: string

Returns node's node document's document base URL.

MDN Reference

Inherited from

HTMLElement.baseURI


childElementCount

Readonly childElementCount: number

MDN Reference

Inherited from

HTMLElement.childElementCount


childNodes

Readonly childNodes: NodeListOf\<ChildNode>

Returns the children.

MDN Reference

Inherited from

HTMLElement.childNodes


children

Readonly children: HTMLCollection

Returns the child elements.

MDN Reference

Inherited from

HTMLElement.children


classList

Readonly classList: DOMTokenList

Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.

MDN Reference

Inherited from

HTMLElement.classList


className

className: string

Returns the value of element's class content attribute. Can be set to change it.

MDN Reference

Inherited from

HTMLElement.className


clientHeight

Readonly clientHeight: number

MDN Reference

Inherited from

HTMLElement.clientHeight


clientLeft

Readonly clientLeft: number

MDN Reference

Inherited from

HTMLElement.clientLeft


clientTop

Readonly clientTop: number

MDN Reference

Inherited from

HTMLElement.clientTop


clientWidth

Readonly clientWidth: number

MDN Reference

Inherited from

HTMLElement.clientWidth


contentEditable

contentEditable: string

MDN Reference

Inherited from

HTMLElement.contentEditable


dataset

Readonly dataset: DOMStringMap

MDN Reference

Inherited from

HTMLElement.dataset


dir

dir: string

MDN Reference

Inherited from

HTMLElement.dir


draggable

draggable: boolean

MDN Reference

Inherited from

HTMLElement.draggable


enterKeyHint

enterKeyHint: string

MDN Reference

Inherited from

HTMLElement.enterKeyHint


firstChild

Readonly firstChild: ChildNode

Returns the first child.

MDN Reference

Inherited from

HTMLElement.firstChild


firstElementChild

Readonly firstElementChild: Element

Returns the first child that is an element, and null otherwise.

MDN Reference

Inherited from

HTMLElement.firstElementChild


hidden

hidden: boolean

MDN Reference

Inherited from

HTMLElement.hidden


id

id: string

Returns the value of element's id content attribute. Can be set to change it.

MDN Reference

Inherited from

HTMLElement.id


inert

inert: boolean

MDN Reference

Inherited from

HTMLElement.inert


innerHTML

innerHTML: string

MDN Reference

Inherited from

HTMLElement.innerHTML


innerText

innerText: string

MDN Reference

Inherited from

HTMLElement.innerText


inputMode

inputMode: string

MDN Reference

Inherited from

HTMLElement.inputMode


isConnected

Readonly isConnected: boolean

Returns true if node is connected and false otherwise.

MDN Reference

Inherited from

HTMLElement.isConnected


isContentEditable

Readonly isContentEditable: boolean

MDN Reference

Inherited from

HTMLElement.isContentEditable


lang

lang: string

MDN Reference

Inherited from

HTMLElement.lang


lastChild

Readonly lastChild: ChildNode

Returns the last child.

MDN Reference

Inherited from

HTMLElement.lastChild


lastElementChild

Readonly lastElementChild: Element

Returns the last child that is an element, and null otherwise.

MDN Reference

Inherited from

HTMLElement.lastElementChild


localName

Readonly localName: string

Returns the local name.

MDN Reference

Inherited from

HTMLElement.localName


namespaceURI

Readonly namespaceURI: string

Returns the namespace.

MDN Reference

Inherited from

HTMLElement.namespaceURI


nextElementSibling

Readonly nextElementSibling: Element

Returns the first following sibling that is an element, and null otherwise.

MDN Reference

Inherited from

HTMLElement.nextElementSibling


nextSibling

Readonly nextSibling: ChildNode

Returns the next sibling.

MDN Reference

Inherited from

HTMLElement.nextSibling


nodeName

Readonly nodeName: string

Returns a string appropriate for the type of node.

MDN Reference

Inherited from

HTMLElement.nodeName


nodeType

Readonly nodeType: number

Returns the type of node.

MDN Reference

Inherited from

HTMLElement.nodeType


nodeValue

nodeValue: string

MDN Reference

Inherited from

HTMLElement.nodeValue


nonce

Optional nonce: string

MDN Reference

Inherited from

HTMLElement.nonce


offsetHeight

Readonly offsetHeight: number

MDN Reference

Inherited from

HTMLElement.offsetHeight


offsetLeft

Readonly offsetLeft: number

MDN Reference

Inherited from

HTMLElement.offsetLeft


offsetParent

Readonly offsetParent: Element

MDN Reference

Inherited from

HTMLElement.offsetParent


offsetTop

Readonly offsetTop: number

MDN Reference

Inherited from

HTMLElement.offsetTop


offsetWidth

Readonly offsetWidth: number

MDN Reference

Inherited from

HTMLElement.offsetWidth


onabort

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

Type declaration

▸ (this, ev): any

Fires when the user aborts the download.

Parameters

Name Type Description
this GlobalEventHandlers -
ev UIEvent The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onabort


onanimationcancel

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev AnimationEvent

Returns

any

Inherited from

HTMLElement.onanimationcancel


onanimationend

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev AnimationEvent

Returns

any

Inherited from

HTMLElement.onanimationend


onanimationiteration

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev AnimationEvent

Returns

any

Inherited from

HTMLElement.onanimationiteration


onanimationstart

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev AnimationEvent

Returns

any

Inherited from

HTMLElement.onanimationstart


onauxclick

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev MouseEvent

Returns

any

Inherited from

HTMLElement.onauxclick


onbeforeinput

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev InputEvent

Returns

any

Inherited from

HTMLElement.onbeforeinput


onblur

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

Type declaration

▸ (this, ev): any

Fires when the object loses the input focus.

Parameters

Name Type Description
this GlobalEventHandlers -
ev FocusEvent The focus event. MDN Reference

Returns

any

Inherited from

HTMLElement.onblur


oncancel

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.oncancel


oncanplay

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.oncanplay


oncanplaythrough

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.oncanplaythrough


onchange

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onchange


onclick

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.onclick


onclose

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.onclose


oncontextmenu

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.oncontextmenu


oncopy

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev ClipboardEvent

Returns

any

Inherited from

HTMLElement.oncopy


oncuechange

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.oncuechange


oncut

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev ClipboardEvent

Returns

any

Inherited from

HTMLElement.oncut


ondblclick

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

Type declaration

▸ (this, ev): any

Fires when the user double-clicks the object.

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondblclick


ondrag

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

Type declaration

▸ (this, ev): any

Fires on the source object continuously during a drag operation.

Parameters

Name Type Description
this GlobalEventHandlers -
ev DragEvent The event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondrag


ondragend

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev DragEvent The event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondragend


ondragenter

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev DragEvent The drag event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondragenter


ondragleave

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev DragEvent The drag event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondragleave


ondragover

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev DragEvent The event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondragover


ondragstart

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev DragEvent The event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondragstart


ondrop

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev DragEvent

Returns

any

Inherited from

HTMLElement.ondrop


ondurationchange

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

Type declaration

▸ (this, ev): any

Occurs when the duration attribute is updated.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.ondurationchange


onemptied

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onemptied


onended

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

Type declaration

▸ (this, ev): any

Occurs when the end of playback is reached.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event MDN Reference

Returns

any

Inherited from

HTMLElement.onended


onerror

onerror: OnErrorEventHandlerNonNull

Fires when an error occurs during object loading.

Param

The event.

MDN Reference

Inherited from

HTMLElement.onerror


onfocus

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

Type declaration

▸ (this, ev): any

Fires when the object receives focus.

Parameters

Name Type Description
this GlobalEventHandlers -
ev FocusEvent The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onfocus


onformdata

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev FormDataEvent

Returns

any

Inherited from

HTMLElement.onformdata


onfullscreenchange

onfullscreenchange: (this: Element, ev: Event) => any

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this Element
ev Event

Returns

any

Inherited from

HTMLElement.onfullscreenchange


onfullscreenerror

onfullscreenerror: (this: Element, ev: Event) => any

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this Element
ev Event

Returns

any

Inherited from

HTMLElement.onfullscreenerror


ongotpointercapture

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.ongotpointercapture


oninput

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.oninput


oninvalid

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.oninvalid


onkeydown

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

Type declaration

▸ (this, ev): any

Fires when the user presses a key.

Parameters

Name Type Description
this GlobalEventHandlers -
ev KeyboardEvent The keyboard event MDN Reference

Returns

any

Inherited from

HTMLElement.onkeydown


onkeypress

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

Type declaration

▸ (this, ev): any

Fires when the user presses an alphanumeric key.

Parameters

Name Type Description
this GlobalEventHandlers -
ev KeyboardEvent The event.

Returns

any

Deprecated

MDN Reference

Inherited from

HTMLElement.onkeypress


onkeyup

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

Type declaration

▸ (this, ev): any

Fires when the user releases a key.

Parameters

Name Type Description
this GlobalEventHandlers -
ev KeyboardEvent The keyboard event MDN Reference

Returns

any

Inherited from

HTMLElement.onkeyup


onload

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

Type declaration

▸ (this, ev): any

Fires immediately after the browser loads the object.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onload


onloadeddata

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onloadeddata


onloadedmetadata

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onloadedmetadata


onloadstart

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

Type declaration

▸ (this, ev): any

Occurs when Internet Explorer begins looking for media data.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onloadstart


onlostpointercapture

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onlostpointercapture


onmousedown

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.onmousedown


onmouseenter

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev MouseEvent

Returns

any

Inherited from

HTMLElement.onmouseenter


onmouseleave

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev MouseEvent

Returns

any

Inherited from

HTMLElement.onmouseleave


onmousemove

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

Type declaration

▸ (this, ev): any

Fires when the user moves the mouse over the object.

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.onmousemove


onmouseout

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.onmouseout


onmouseover

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.onmouseover


onmouseup

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev MouseEvent The mouse event. MDN Reference

Returns

any

Inherited from

HTMLElement.onmouseup


onpaste

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev ClipboardEvent

Returns

any

Inherited from

HTMLElement.onpaste


onpause

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

Type declaration

▸ (this, ev): any

Occurs when playback is paused.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onpause


onplay

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

Type declaration

▸ (this, ev): any

Occurs when the play method is requested.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onplay


onplaying

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

Type declaration

▸ (this, ev): any

Occurs when the audio or video has started playing.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onplaying


onpointercancel

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointercancel


onpointerdown

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointerdown


onpointerenter

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointerenter


onpointerleave

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointerleave


onpointermove

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointermove


onpointerout

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointerout


onpointerover

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointerover


onpointerup

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev PointerEvent

Returns

any

Inherited from

HTMLElement.onpointerup


onprogress

onprogress: (this: GlobalEventHandlers, ev: ProgressEvent\<EventTarget>) => any

Type declaration

▸ (this, ev): any

Occurs to indicate progress while downloading media data.

Parameters

Name Type Description
this GlobalEventHandlers -
ev ProgressEvent\<EventTarget> The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onprogress


onratechange

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

Type declaration

▸ (this, ev): any

Occurs when the playback rate is increased or decreased.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onratechange


onreset

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

Type declaration

▸ (this, ev): any

Fires when the user resets a form.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onreset


onresize

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev UIEvent

Returns

any

Inherited from

HTMLElement.onresize


onscroll

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onscroll


onscrollend

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.onscrollend


onsecuritypolicyviolation

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev SecurityPolicyViolationEvent

Returns

any

Inherited from

HTMLElement.onsecuritypolicyviolation


onseeked

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

Type declaration

▸ (this, ev): any

Occurs when the seek operation ends.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onseeked


onseeking

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

Type declaration

▸ (this, ev): any

Occurs when the current playback position is moved.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onseeking


onselect

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

Type declaration

▸ (this, ev): any

Fires when the current selection changes.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onselect


onselectionchange

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.onselectionchange


onselectstart

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.onselectstart


onslotchange

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.onslotchange


onstalled

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

Type declaration

▸ (this, ev): any

Occurs when the download has stopped.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onstalled


onsubmit

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev SubmitEvent

Returns

any

Inherited from

HTMLElement.onsubmit


onsuspend

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

Type declaration

▸ (this, ev): any

Occurs if the load operation has been intentionally halted.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onsuspend


ontimeupdate

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

Type declaration

▸ (this, ev): any

Occurs to indicate the current playback position.

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.ontimeupdate


ontoggle

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Inherited from

HTMLElement.ontoggle


ontouchcancel

Optional ontouchcancel: (this: GlobalEventHandlers, ev: TouchEvent) => any

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TouchEvent

Returns

any

Inherited from

HTMLElement.ontouchcancel


ontouchend

Optional ontouchend: (this: GlobalEventHandlers, ev: TouchEvent) => any

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TouchEvent

Returns

any

Inherited from

HTMLElement.ontouchend


ontouchmove

Optional ontouchmove: (this: GlobalEventHandlers, ev: TouchEvent) => any

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TouchEvent

Returns

any

Inherited from

HTMLElement.ontouchmove


ontouchstart

Optional ontouchstart: (this: GlobalEventHandlers, ev: TouchEvent) => any

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TouchEvent

Returns

any

Inherited from

HTMLElement.ontouchstart


ontransitioncancel

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TransitionEvent

Returns

any

Inherited from

HTMLElement.ontransitioncancel


ontransitionend

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TransitionEvent

Returns

any

Inherited from

HTMLElement.ontransitionend


ontransitionrun

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TransitionEvent

Returns

any

Inherited from

HTMLElement.ontransitionrun


ontransitionstart

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev TransitionEvent

Returns

any

Inherited from

HTMLElement.ontransitionstart


onvolumechange

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onvolumechange


onwaiting

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

Type declaration

▸ (this, ev): any

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

Parameters

Name Type Description
this GlobalEventHandlers -
ev Event The event. MDN Reference

Returns

any

Inherited from

HTMLElement.onwaiting


onwebkitanimationend

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

Type declaration

▸ (this, ev): any

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Deprecated

This is a legacy alias of onanimationend.

MDN Reference

Inherited from

HTMLElement.onwebkitanimationend


onwebkitanimationiteration

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

Type declaration

▸ (this, ev): any

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Deprecated

This is a legacy alias of onanimationiteration.

MDN Reference

Inherited from

HTMLElement.onwebkitanimationiteration


onwebkitanimationstart

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

Type declaration

▸ (this, ev): any

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Deprecated

This is a legacy alias of onanimationstart.

MDN Reference

Inherited from

HTMLElement.onwebkitanimationstart


onwebkittransitionend

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

Type declaration

▸ (this, ev): any

Parameters

Name Type
this GlobalEventHandlers
ev Event

Returns

any

Deprecated

This is a legacy alias of ontransitionend.

MDN Reference

Inherited from

HTMLElement.onwebkittransitionend


onwheel

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

Type declaration

▸ (this, ev): any

MDN Reference

Parameters

Name Type
this GlobalEventHandlers
ev WheelEvent

Returns

any

Inherited from

HTMLElement.onwheel


outerHTML

outerHTML: string

MDN Reference

Inherited from

HTMLElement.outerHTML


outerText

outerText: string

MDN Reference

Inherited from

HTMLElement.outerText


ownerDocument

Readonly ownerDocument: Document

Inherited from

HTMLElement.ownerDocument


parentElement

Readonly parentElement: HTMLElement

Returns the parent element.

MDN Reference

Inherited from

HTMLElement.parentElement


parentNode

Readonly parentNode: ParentNode

Returns the parent.

MDN Reference

Inherited from

HTMLElement.parentNode


part

Readonly part: DOMTokenList

MDN Reference

Inherited from

HTMLElement.part


popover

popover: string

MDN Reference

Inherited from

HTMLElement.popover


prefix

Readonly prefix: string

Returns the namespace prefix.

MDN Reference

Inherited from

HTMLElement.prefix


previousElementSibling

Readonly previousElementSibling: Element

Returns the first preceding sibling that is an element, and null otherwise.

MDN Reference

Inherited from

HTMLElement.previousElementSibling


previousSibling

Readonly previousSibling: ChildNode

Returns the previous sibling.

MDN Reference

Inherited from

HTMLElement.previousSibling


role

role: string

Inherited from

HTMLElement.role


scrollHeight

Readonly scrollHeight: number

MDN Reference

Inherited from

HTMLElement.scrollHeight


scrollLeft

scrollLeft: number

MDN Reference

Inherited from

HTMLElement.scrollLeft


scrollTop

scrollTop: number

MDN Reference

Inherited from

HTMLElement.scrollTop


scrollWidth

Readonly scrollWidth: number

MDN Reference

Inherited from

HTMLElement.scrollWidth


shadowRoot

Readonly shadowRoot: ShadowRoot

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.

MDN Reference

Inherited from

HTMLElement.shadowRoot


slot

slot: string

Returns the value of element's slot content attribute. Can be set to change it.

MDN Reference

Inherited from

HTMLElement.slot


spellcheck

spellcheck: boolean

MDN Reference

Inherited from

HTMLElement.spellcheck


style

Readonly style: CSSStyleDeclaration

MDN Reference

Inherited from

HTMLElement.style


tabIndex

tabIndex: number

MDN Reference

Inherited from

HTMLElement.tabIndex


tagName

Readonly tagName: string

Returns the HTML-uppercased qualified name.

MDN Reference

Inherited from

HTMLElement.tagName


textContent

textContent: string

MDN Reference

Inherited from

HTMLElement.textContent


title

title: string

MDN Reference

Inherited from

HTMLElement.title


translate

translate: boolean

Inherited from

HTMLElement.translate

Accessors

slides

set slides(slides): void

Setter for story object.

Parameters

Name Type
slides Story

Returns

void

Methods

addEventListener

addEventListener\<K>(type, listener, options?): void

Type parameters

Name Type
K extends keyof HTMLElementEventMap

Parameters

Name Type
type K
listener (this: HTMLElement, ev: HTMLElementEventMap[K]) => any
options? boolean | AddEventListenerOptions

Returns

void

Inherited from

HTMLElement.addEventListener

addEventListener(type, listener, options?): void

Parameters

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | AddEventListenerOptions

Returns

void

Inherited from

HTMLElement.addEventListener


after

after(...nodes): void

Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

HTMLElement.after


animate

animate(keyframes, options?): Animation

MDN Reference

Parameters

Name Type
keyframes Keyframe[] | PropertyIndexedKeyframes
options? number | KeyframeAnimationOptions

Returns

Animation

Inherited from

HTMLElement.animate


append

append(...nodes): void

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

HTMLElement.append


appendChild

appendChild\<T>(node): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T

Returns

T

Inherited from

HTMLElement.appendChild


attachInternals

attachInternals(): ElementInternals

MDN Reference

Returns

ElementInternals

Inherited from

HTMLElement.attachInternals


attachShadow

attachShadow(init): ShadowRoot

Creates a shadow root for element and returns it.

MDN Reference

Parameters

Name Type
init ShadowRootInit

Returns

ShadowRoot

Inherited from

HTMLElement.attachShadow


before

before(...nodes): void

Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

HTMLElement.before


blur

blur(): void

MDN Reference

Returns

void

Inherited from

HTMLElement.blur


checkVisibility

checkVisibility(options?): boolean

Parameters

Name Type
options? CheckVisibilityOptions

Returns

boolean

Inherited from

HTMLElement.checkVisibility


click

click(): void

MDN Reference

Returns

void

Inherited from

HTMLElement.click


cloneNode

cloneNode(deep?): Node

Returns a copy of node. If deep is true, the copy also includes the node's descendants.

MDN Reference

Parameters

Name Type
deep? boolean

Returns

Node

Inherited from

HTMLElement.cloneNode


closest

closest\<K>(selector): HTMLElementTagNameMap[K]

Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selector K

Returns

HTMLElementTagNameMap[K]

Inherited from

HTMLElement.closest

closest\<K>(selector): SVGElementTagNameMap[K]

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selector K

Returns

SVGElementTagNameMap[K]

Inherited from

HTMLElement.closest

closest\<K>(selector): MathMLElementTagNameMap[K]

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selector K

Returns

MathMLElementTagNameMap[K]

Inherited from

HTMLElement.closest

closest\<E>(selectors): E

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

E

Inherited from

HTMLElement.closest


compareDocumentPosition

compareDocumentPosition(other): number

Returns a bitmask indicating the position of other relative to node.

MDN Reference

Parameters

Name Type
other Node

Returns

number

Inherited from

HTMLElement.compareDocumentPosition


computedStyleMap

computedStyleMap(): StylePropertyMapReadOnly

MDN Reference

Returns

StylePropertyMapReadOnly

Inherited from

HTMLElement.computedStyleMap


contains

contains(other): boolean

Returns true if other is an inclusive descendant of node, and false otherwise.

MDN Reference

Parameters

Name Type
other Node

Returns

boolean

Inherited from

HTMLElement.contains


dispatchEvent

dispatchEvent(event): boolean

Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

MDN Reference

Parameters

Name Type
event Event

Returns

boolean

Inherited from

HTMLElement.dispatchEvent


focus

focus(options?): void

MDN Reference

Parameters

Name Type
options? FocusOptions

Returns

void

Inherited from

HTMLElement.focus


getAnimations

getAnimations(options?): Animation[]

MDN Reference

Parameters

Name Type
options? GetAnimationsOptions

Returns

Animation[]

Inherited from

HTMLElement.getAnimations


getAttribute

getAttribute(qualifiedName): string

Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

string

Inherited from

HTMLElement.getAttribute


getAttributeNS

getAttributeNS(namespace, localName): string

Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.

MDN Reference

Parameters

Name Type
namespace string
localName string

Returns

string

Inherited from

HTMLElement.getAttributeNS


getAttributeNames

getAttributeNames(): string[]

Returns the qualified names of all element's attributes. Can contain duplicates.

MDN Reference

Returns

string[]

Inherited from

HTMLElement.getAttributeNames


getAttributeNode

getAttributeNode(qualifiedName): Attr

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

Attr

Inherited from

HTMLElement.getAttributeNode


getAttributeNodeNS

getAttributeNodeNS(namespace, localName): Attr

MDN Reference

Parameters

Name Type
namespace string
localName string

Returns

Attr

Inherited from

HTMLElement.getAttributeNodeNS


getBoundingClientRect

getBoundingClientRect(): DOMRect

MDN Reference

Returns

DOMRect

Inherited from

HTMLElement.getBoundingClientRect


getClientRects

getClientRects(): DOMRectList

MDN Reference

Returns

DOMRectList

Inherited from

HTMLElement.getClientRects


getElementsByClassName

getElementsByClassName(classNames): HTMLCollectionOf\<Element>

Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.

MDN Reference

Parameters

Name Type
classNames string

Returns

HTMLCollectionOf\<Element>

Inherited from

HTMLElement.getElementsByClassName


getElementsByTagName

getElementsByTagName\<K>(qualifiedName): HTMLCollectionOf\<HTMLElementTagNameMap[K]>

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf\<HTMLElementTagNameMap[K]>

Inherited from

HTMLElement.getElementsByTagName

getElementsByTagName\<K>(qualifiedName): HTMLCollectionOf\<SVGElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf\<SVGElementTagNameMap[K]>

Inherited from

HTMLElement.getElementsByTagName

getElementsByTagName\<K>(qualifiedName): HTMLCollectionOf\<MathMLElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf\<MathMLElementTagNameMap[K]>

Inherited from

HTMLElement.getElementsByTagName

getElementsByTagName\<K>(qualifiedName): HTMLCollectionOf\<HTMLElementDeprecatedTagNameMap[K]>

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
qualifiedName K

Returns

HTMLCollectionOf\<HTMLElementDeprecatedTagNameMap[K]>

Deprecated

Inherited from

HTMLElement.getElementsByTagName

getElementsByTagName(qualifiedName): HTMLCollectionOf\<Element>

Parameters

Name Type
qualifiedName string

Returns

HTMLCollectionOf\<Element>

Inherited from

HTMLElement.getElementsByTagName


getElementsByTagNameNS

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf\<HTMLElement>

MDN Reference

Parameters

Name Type
namespaceURI "http://www.w3.org/1999/xhtml"
localName string

Returns

HTMLCollectionOf\<HTMLElement>

Inherited from

HTMLElement.getElementsByTagNameNS

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf\<SVGElement>

Parameters

Name Type
namespaceURI "http://www.w3.org/2000/svg"
localName string

Returns

HTMLCollectionOf\<SVGElement>

Inherited from

HTMLElement.getElementsByTagNameNS

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf\<MathMLElement>

Parameters

Name Type
namespaceURI "http://www.w3.org/1998/Math/MathML"
localName string

Returns

HTMLCollectionOf\<MathMLElement>

Inherited from

HTMLElement.getElementsByTagNameNS

getElementsByTagNameNS(namespace, localName): HTMLCollectionOf\<Element>

Parameters

Name Type
namespace string
localName string

Returns

HTMLCollectionOf\<Element>

Inherited from

HTMLElement.getElementsByTagNameNS


getRootNode

getRootNode(options?): Node

Returns node's root.

MDN Reference

Parameters

Name Type
options? GetRootNodeOptions

Returns

Node

Inherited from

HTMLElement.getRootNode


hasAttribute

hasAttribute(qualifiedName): boolean

Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

boolean

Inherited from

HTMLElement.hasAttribute


hasAttributeNS

hasAttributeNS(namespace, localName): boolean

Returns true if element has an attribute whose namespace is namespace and local name is localName.

MDN Reference

Parameters

Name Type
namespace string
localName string

Returns

boolean

Inherited from

HTMLElement.hasAttributeNS


hasAttributes

hasAttributes(): boolean

Returns true if element has attributes, and false otherwise.

MDN Reference

Returns

boolean

Inherited from

HTMLElement.hasAttributes


hasChildNodes

hasChildNodes(): boolean

Returns whether node has children.

MDN Reference

Returns

boolean

Inherited from

HTMLElement.hasChildNodes


hasPointerCapture

hasPointerCapture(pointerId): boolean

MDN Reference

Parameters

Name Type
pointerId number

Returns

boolean

Inherited from

HTMLElement.hasPointerCapture


hidePopover

hidePopover(): void

MDN Reference

Returns

void

Inherited from

HTMLElement.hidePopover


insertAdjacentElement

insertAdjacentElement(where, element): Element

MDN Reference

Parameters

Name Type
where InsertPosition
element Element

Returns

Element

Inherited from

HTMLElement.insertAdjacentElement


insertAdjacentHTML

insertAdjacentHTML(position, text): void

MDN Reference

Parameters

Name Type
position InsertPosition
text string

Returns

void

Inherited from

HTMLElement.insertAdjacentHTML


insertAdjacentText

insertAdjacentText(where, data): void

MDN Reference

Parameters

Name Type
where InsertPosition
data string

Returns

void

Inherited from

HTMLElement.insertAdjacentText


insertBefore

insertBefore\<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T
child Node

Returns

T

Inherited from

HTMLElement.insertBefore


isDefaultNamespace

isDefaultNamespace(namespace): boolean

MDN Reference

Parameters

Name Type
namespace string

Returns

boolean

Inherited from

HTMLElement.isDefaultNamespace


isEqualNode

isEqualNode(otherNode): boolean

Returns whether node and otherNode have the same properties.

MDN Reference

Parameters

Name Type
otherNode Node

Returns

boolean

Inherited from

HTMLElement.isEqualNode


isSameNode

isSameNode(otherNode): boolean

MDN Reference

Parameters

Name Type
otherNode Node

Returns

boolean

Inherited from

HTMLElement.isSameNode


lookupNamespaceURI

lookupNamespaceURI(prefix): string

MDN Reference

Parameters

Name Type
prefix string

Returns

string

Inherited from

HTMLElement.lookupNamespaceURI


lookupPrefix

lookupPrefix(namespace): string

MDN Reference

Parameters

Name Type
namespace string

Returns

string

Inherited from

HTMLElement.lookupPrefix


matches

matches(selectors): boolean

Returns true if matching selectors against element's root yields element, and false otherwise.

MDN Reference

Parameters

Name Type
selectors string

Returns

boolean

Inherited from

HTMLElement.matches


normalize

normalize(): void

Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.

MDN Reference

Returns

void

Inherited from

HTMLElement.normalize


prepend

prepend(...nodes): void

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

HTMLElement.prepend


querySelector

querySelector\<K>(selectors): HTMLElementTagNameMap[K]

Returns the first element that is a descendant of node that matches selectors.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

HTMLElementTagNameMap[K]

Inherited from

HTMLElement.querySelector

querySelector\<K>(selectors): SVGElementTagNameMap[K]

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

SVGElementTagNameMap[K]

Inherited from

HTMLElement.querySelector

querySelector\<K>(selectors): MathMLElementTagNameMap[K]

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

MathMLElementTagNameMap[K]

Inherited from

HTMLElement.querySelector

querySelector\<K>(selectors): HTMLElementDeprecatedTagNameMap[K]

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

HTMLElementDeprecatedTagNameMap[K]

Deprecated

Inherited from

HTMLElement.querySelector

querySelector\<E>(selectors): E

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

E

Inherited from

HTMLElement.querySelector


querySelectorAll

querySelectorAll\<K>(selectors): NodeListOf\<HTMLElementTagNameMap[K]>

Returns all element descendants of node that match selectors.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf\<HTMLElementTagNameMap[K]>

Inherited from

HTMLElement.querySelectorAll

querySelectorAll\<K>(selectors): NodeListOf\<SVGElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf\<SVGElementTagNameMap[K]>

Inherited from

HTMLElement.querySelectorAll

querySelectorAll\<K>(selectors): NodeListOf\<MathMLElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf\<MathMLElementTagNameMap[K]>

Inherited from

HTMLElement.querySelectorAll

querySelectorAll\<K>(selectors): NodeListOf\<HTMLElementDeprecatedTagNameMap[K]>

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf\<HTMLElementDeprecatedTagNameMap[K]>

Deprecated

Inherited from

HTMLElement.querySelectorAll

querySelectorAll\<E>(selectors): NodeListOf\<E>

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

NodeListOf\<E>

Inherited from

HTMLElement.querySelectorAll


releasePointerCapture

releasePointerCapture(pointerId): void

MDN Reference

Parameters

Name Type
pointerId number

Returns

void

Inherited from

HTMLElement.releasePointerCapture


remove

remove(): void

Removes node.

MDN Reference

Returns

void

Inherited from

HTMLElement.remove


removeAttribute

removeAttribute(qualifiedName): void

Removes element's first attribute whose qualified name is qualifiedName.

MDN Reference

Parameters

Name Type
qualifiedName string

Returns

void

Inherited from

HTMLElement.removeAttribute


removeAttributeNS

removeAttributeNS(namespace, localName): void

Removes element's attribute whose namespace is namespace and local name is localName.

MDN Reference

Parameters

Name Type
namespace string
localName string

Returns

void

Inherited from

HTMLElement.removeAttributeNS


removeAttributeNode

removeAttributeNode(attr): Attr

MDN Reference

Parameters

Name Type
attr Attr

Returns

Attr

Inherited from

HTMLElement.removeAttributeNode


removeChild

removeChild\<T>(child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
child T

Returns

T

Inherited from

HTMLElement.removeChild


removeEventListener

removeEventListener\<K>(type, listener, options?): void

Type parameters

Name Type
K extends keyof HTMLElementEventMap

Parameters

Name Type
type K
listener (this: HTMLElement, ev: HTMLElementEventMap[K]) => any
options? boolean | EventListenerOptions

Returns

void

Inherited from

HTMLElement.removeEventListener

removeEventListener(type, listener, options?): void

Parameters

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | EventListenerOptions

Returns

void

Inherited from

HTMLElement.removeEventListener


replaceChild

replaceChild\<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node Node
child T

Returns

T

Inherited from

HTMLElement.replaceChild


replaceChildren

replaceChildren(...nodes): void

Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

HTMLElement.replaceChildren


replaceWith

replaceWith(...nodes): void

Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

HTMLElement.replaceWith


requestFullscreen

requestFullscreen(options?): Promise\<void>

Displays element fullscreen and resolves promise when done.

When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.

MDN Reference

Parameters

Name Type
options? FullscreenOptions

Returns

Promise\<void>

Inherited from

HTMLElement.requestFullscreen


requestPointerLock

requestPointerLock(): void

MDN Reference

Returns

void

Inherited from

HTMLElement.requestPointerLock


scroll

scroll(options?): void

MDN Reference

Parameters

Name Type
options? ScrollToOptions

Returns

void

Inherited from

HTMLElement.scroll

scroll(x, y): void

Parameters

Name Type
x number
y number

Returns

void

Inherited from

HTMLElement.scroll


scrollBy

scrollBy(options?): void

MDN Reference

Parameters

Name Type
options? ScrollToOptions

Returns

void

Inherited from

HTMLElement.scrollBy

scrollBy(x, y): void

Parameters

Name Type
x number
y number

Returns

void

Inherited from

HTMLElement.scrollBy


scrollIntoView

scrollIntoView(arg?): void

MDN Reference

Parameters

Name Type
arg? boolean | ScrollIntoViewOptions

Returns

void

Inherited from

HTMLElement.scrollIntoView


scrollTo

scrollTo(options?): void

MDN Reference

Parameters

Name Type
options? ScrollToOptions

Returns

void

Inherited from

HTMLElement.scrollTo

scrollTo(x, y): void

Parameters

Name Type
x number
y number

Returns

void

Inherited from

HTMLElement.scrollTo


setAttribute

setAttribute(qualifiedName, value): void

Sets the value of element's first attribute whose qualified name is qualifiedName to value.

MDN Reference

Parameters

Name Type
qualifiedName string
value string

Returns

void

Inherited from

HTMLElement.setAttribute


setAttributeNS

setAttributeNS(namespace, qualifiedName, value): void

Sets the value of element's attribute whose namespace is namespace and local name is localName to value.

MDN Reference

Parameters

Name Type
namespace string
qualifiedName string
value string

Returns

void

Inherited from

HTMLElement.setAttributeNS


setAttributeNode

setAttributeNode(attr): Attr

MDN Reference

Parameters

Name Type
attr Attr

Returns

Attr

Inherited from

HTMLElement.setAttributeNode


setAttributeNodeNS

setAttributeNodeNS(attr): Attr

MDN Reference

Parameters

Name Type
attr Attr

Returns

Attr

Inherited from

HTMLElement.setAttributeNodeNS


setPointerCapture

setPointerCapture(pointerId): void

MDN Reference

Parameters

Name Type
pointerId number

Returns

void

Inherited from

HTMLElement.setPointerCapture


showPopover

showPopover(): void

MDN Reference

Returns

void

Inherited from

HTMLElement.showPopover


toggleAttribute

toggleAttribute(qualifiedName, force?): boolean

If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

Returns true if qualifiedName is now present, and false otherwise.

MDN Reference

Parameters

Name Type
qualifiedName string
force? boolean

Returns

boolean

Inherited from

HTMLElement.toggleAttribute


togglePopover

togglePopover(force?): void

MDN Reference

Parameters

Name Type
force? boolean

Returns

void

Inherited from

HTMLElement.togglePopover


webkitMatchesSelector

webkitMatchesSelector(selectors): boolean

Parameters

Name Type
selectors string

Returns

boolean

Deprecated

This is a legacy alias of matches.

MDN Reference

Inherited from

HTMLElement.webkitMatchesSelector