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.
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.
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.
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.
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating
ATTRIBUTE_NODE: number;
CDATA_SECTION_NODE: number;
COMMENT_NODE: number;
DOCUMENT_FRAGMENT_NODE: number;
DOCUMENT_NODE: number;
DOCUMENT_POSITION_CONTAINED_BY: number;
DOCUMENT_POSITION_CONTAINS: number;
DOCUMENT_POSITION_DISCONNECTED: number;
DOCUMENT_POSITION_FOLLOWING: number;
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
DOCUMENT_POSITION_PRECEDING: number;
DOCUMENT_TYPE_NODE: number;
ELEMENT_NODE: number;
ENTITY_NODE: number;
ENTITY_REFERENCE_NODE: number;
NOTATION_NODE: number;
PROCESSING_INSTRUCTION_NODE: number;
TEXT_NODE: number;
accessKey: string;
accessKeyLabel: string;
align: string;
ariaAtomic: string;
ariaAutoComplete: string;
ariaBusy: string;
ariaChecked: string;
ariaColCount: string;
ariaColIndex: string;
ariaColIndexText: string;
ariaColSpan: string;
ariaCurrent: string;
ariaDisabled: string;
ariaExpanded: string;
ariaHasPopup: string;
ariaHidden: string;
ariaInvalid: string;
ariaKeyShortcuts: string;
ariaLabel: string;
ariaLevel: string;
ariaLive: string;
ariaModal: string;
ariaMultiLine: string;
ariaMultiSelectable: string;
ariaOrientation: string;
ariaPlaceholder: string;
ariaPosInSet: string;
ariaPressed: string;
ariaReadOnly: string;
ariaRequired: string;
ariaRoleDescription: string;
ariaRowCount: string;
ariaRowIndex: string;
ariaRowIndexText: string;
ariaRowSpan: string;
ariaSelected: string;
ariaSetSize: string;
ariaSort: string;
ariaValueMax: string;
ariaValueMin: string;
ariaValueNow: string;
ariaValueText: string;
assignedSlot: HTMLSlotElement;
attributes: NamedNodeMap;
autocapitalize: string;
autofocus: boolean;
baseURI: string;
childElementCount: number;
childNodes: NodeListOf<ChildNode>;
children: HTMLCollection;
classList: DOMTokenList;
className: string;
clientHeight: number;
clientLeft: number;
clientTop: number;
clientWidth: number;
contentEditable: string;
dataset: DOMStringMap;
dir: string;
draggable: boolean;
enterKeyHint: string;
firstChild: ChildNode;
firstElementChild: Element;
hidden: boolean;
id: string;
inert: boolean;
innerHTML: string;
innerText: string;
inputMode: string;
isConnected: boolean;
isContentEditable: boolean;
lang: string;
lastChild: ChildNode;
lastElementChild: Element;
localName: string;
namespaceURI: string;
nextElementSibling: Element;
nextSibling: ChildNode;
nodeName: string;
nodeType: number;
nodeValue: string;
nonce?: string;
offsetHeight: number;
offsetLeft: number;
offsetParent: Element;
offsetTop: number;
offsetWidth: number;
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);
onfullscreenchange: ((this, ev) => any);
onfullscreenerror: ((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);
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);
outerHTML: string;
outerText: string;
ownerDocument: Document;
parentElement: HTMLElement;
parentNode: ParentNode;
part: DOMTokenList;
prefix: string;
previousElementSibling: Element;
previousSibling: ChildNode;
role: string;
scrollHeight: number;
scrollLeft: number;
scrollTop: number;
scrollWidth: number;
shadowRoot: ShadowRoot;
slot: string;
spellcheck: boolean;
style: CSSStyleDeclaration;
tabIndex: number;
tagName: string;
textContent: string;
title: string;
translate: boolean;
addEventListener<K>(type, listener, options?): void;
addEventListener(type, listener, options?): void;
after(...nodes): void;
animate(keyframes, options?): Animation;
append(...nodes): void;
appendChild<T>(node): T;
attachInternals(): ElementInternals;
attachShadow(init): ShadowRoot;
before(...nodes): void;
blur(): void;
click(): void;
cloneNode(deep?): Node;
closest<K>(selector): HTMLElementTagNameMap[K];
closest<K>(selector): SVGElementTagNameMap[K];
closest<E>(selectors): E;
compareDocumentPosition(other): number;
contains(other): boolean;
dispatchEvent(event): boolean;
focus(options?): void;
getAnimations(options?): Animation[];
getAttribute(qualifiedName): string;
getAttributeNS(namespace, localName): string;
getAttributeNames(): string[];
getAttributeNode(qualifiedName): Attr;
getAttributeNodeNS(namespace, localName): Attr;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
getElementsByClassName(classNames): HTMLCollectionOf<Element>;
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>;
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>;
getRootNode(options?): Node;
hasAttribute(qualifiedName): boolean;
hasAttributeNS(namespace, localName): boolean;
hasAttributes(): boolean;
hasChildNodes(): boolean;
hasPointerCapture(pointerId): boolean;
insertAdjacentElement(where, element): Element;
insertAdjacentHTML(position, text): void;
insertAdjacentText(where, data): void;
insertBefore<T>(node, child): T;
isDefaultNamespace(namespace): boolean;
isEqualNode(otherNode): boolean;
isSameNode(otherNode): boolean;
lookupNamespaceURI(prefix): string;
lookupPrefix(namespace): string;
matches(selectors): boolean;
normalize(): void;
prepend(...nodes): void;
querySelector<K>(selectors): HTMLElementTagNameMap[K];
querySelector<K>(selectors): SVGElementTagNameMap[K];
querySelector<E>(selectors): E;
querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<E>(selectors): NodeListOf<E>;
releasePointerCapture(pointerId): void;
remove(): void;
removeAttribute(qualifiedName): void;
removeAttributeNS(namespace, localName): void;
removeAttributeNode(attr): Attr;
removeChild<T>(child): T;
removeEventListener<K>(type, listener, options?): void;
removeEventListener(type, listener, options?): void;
replaceChild<T>(node, child): T;
replaceChildren(...nodes): void;
replaceWith(...nodes): void;
requestFullscreen(options?): Promise<void>;
requestPointerLock(): void;
scroll(options?): void;
scroll(x, y): void;
scrollBy(options?): void;
scrollBy(x, y): void;
scrollIntoView(arg?): void;
scrollTo(options?): void;
scrollTo(x, y): void;
setAttribute(qualifiedName, value): void;
setAttributeNS(namespace, qualifiedName, value): void;
setAttributeNode(attr): Attr;
setAttributeNodeNS(attr): Attr;
setPointerCapture(pointerId): void;
toggleAttribute(qualifiedName, force?): boolean;
webkitMatchesSelector(selectors): boolean;
}
Hierarchy
Index
Properties
Methods
Properties
Readonly
ATTRIBUTE_Readonly
CDATA_node is a CDATASection node.
Readonly
COMMENT_node is a Comment node.
Readonly
DOCUMENT_node is a DocumentFragment node.
Readonly
DOCUMENT_node is a document.
Readonly
DOCUMENT_Set when other is a descendant of node.
Readonly
DOCUMENT_Set when other is an ancestor of node.
Readonly
DOCUMENT_Set when node and other are not in the same tree.
Readonly
DOCUMENT_Set when other is following node.
Readonly
DOCUMENT_Readonly
DOCUMENT_Set when other is preceding node.
Readonly
DOCUMENT_node is a doctype.
Readonly
ELEMENT_node is an element.
Readonly
ENTITY_Readonly
ENTITY_Readonly
NOTATION_Readonly
PROCESSING_node is a ProcessingInstruction node.
Readonly
TEXT_node is a Text node.
access Key
Readonly
accessalign
Sets or retrieves how the object is aligned with adjacent text.
Deprecated
aria Atomic
aria Auto Complete
aria Busy
aria Checked
aria Col Count
aria Col Index
aria Col Index Text
aria Col Span
aria Current
aria Disabled
aria Expanded
aria Has Popup
aria Hidden
aria Invalid
aria Key Shortcuts
aria Label
aria Level
aria Live
aria Modal
aria Multi Line
aria Multi Selectable
aria Orientation
aria Placeholder
aria Pos In Set
aria Pressed
aria Read Only
aria Required
aria Role Description
aria Row Count
aria Row Index
aria Row Index Text
aria Row Span
aria Selected
aria Set Size
aria Sort
aria Value Max
aria Value Min
aria Value Now
aria Value Text
Readonly
assignedReadonly
attributesautocapitalize
autofocus
Readonly
baseURIReturns node's node document's document base URL.
Readonly
childReadonly
childReturns the children.
Readonly
childrenReturns the child elements.
Readonly
classAllows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
class Name
Returns the value of element's class content attribute. Can be set to change it.
Readonly
clientReadonly
clientReadonly
clientReadonly
clientcontent Editable
Readonly
datasetdir
draggable
enter Key Hint
Readonly
firstReturns the first child.
Readonly
firstReturns the first child that is an element, and null otherwise.
hidden
id
Returns the value of element's id content attribute. Can be set to change it.
inert
innerHTML
inner Text
input Mode
Readonly
isReturns true if node is connected and false otherwise.
Readonly
islang
Readonly
lastReturns the last child.
Readonly
lastReturns the last child that is an element, and null otherwise.
Readonly
localReturns the local name.
Readonly
namespaceURIReturns the namespace.
Readonly
nextReturns the first following sibling that is an element, and null otherwise.
Readonly
nextReturns the next sibling.
Readonly
nodeReturns a string appropriate for the type of node.
Readonly
nodeReturns the type of node.
node Value
Optional
nonceReadonly
offsetReadonly
offsetReadonly
offsetReadonly
offsetReadonly
offsetonabort
Type declaration
Fires when the user aborts the download.
Parameters
this: GlobalEventHandlers
ev: UIEvent
The event.
Returns any
onanimationcancel
Type declaration
Parameters
this: GlobalEventHandlers
ev: AnimationEvent
Returns any
onanimationend
Type declaration
Parameters
this: GlobalEventHandlers
ev: AnimationEvent
Returns any
onanimationiteration
Type declaration
Parameters
this: GlobalEventHandlers
ev: AnimationEvent
Returns any
onanimationstart
Type declaration
Parameters
this: GlobalEventHandlers
ev: AnimationEvent
Returns any
onauxclick
Type declaration
Parameters
this: GlobalEventHandlers
ev: MouseEvent
Returns any
onbeforeinput
Type declaration
Parameters
this: GlobalEventHandlers
ev: InputEvent
Returns any
onblur
Type declaration
Fires when the object loses the input focus.
Parameters
this: GlobalEventHandlers
ev: FocusEvent
The focus event.
Returns any
oncancel
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
oncanplay
Type declaration
Occurs when playback is possible, but would require further buffering.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
oncanplaythrough
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onchange
Type declaration
Fires when the contents of the object or selection have changed.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onclick
Type declaration
Fires when the user clicks the left mouse button on the object
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onclose
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
oncontextmenu
Type declaration
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
oncopy
Type declaration
Parameters
this: DocumentAndElementEventHandlers
ev: ClipboardEvent
Returns any
oncuechange
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
oncut
Type declaration
Parameters
this: DocumentAndElementEventHandlers
ev: ClipboardEvent
Returns any
ondblclick
Type declaration
Fires when the user double-clicks the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
ondrag
Type declaration
Fires on the source object continuously during a drag operation.
Parameters
this: GlobalEventHandlers
ev: DragEvent
The event.
Returns any
ondragend
Type declaration
Fires on the source object when the user releases the mouse at the close of a drag operation.
Parameters
this: GlobalEventHandlers
ev: DragEvent
The event.
Returns any
ondragenter
Type declaration
Fires on the target element when the user drags the object to a valid drop target.
Parameters
this: GlobalEventHandlers
ev: DragEvent
The drag event.
Returns any
ondragleave
Type declaration
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Parameters
this: GlobalEventHandlers
ev: DragEvent
The drag event.
Returns any
ondragover
Type declaration
Fires on the target element continuously while the user drags the object over a valid drop target.
Parameters
this: GlobalEventHandlers
ev: DragEvent
The event.
Returns any
ondragstart
Type declaration
Fires on the source object when the user starts to drag a text selection or selected object.
Parameters
this: GlobalEventHandlers
ev: DragEvent
The event.
Returns any
ondrop
Type declaration
Parameters
this: GlobalEventHandlers
ev: DragEvent
Returns any
ondurationchange
Type declaration
Occurs when the duration attribute is updated.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onemptied
Type declaration
Occurs when the media element is reset to its initial state.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onended
Type declaration
Occurs when the end of playback is reached.
Parameters
this: GlobalEventHandlers
ev: Event
The event
Returns any
onerror
Fires when an error occurs during object loading.
Param: ev
The event.
onfocus
Type declaration
Fires when the object receives focus.
Parameters
this: GlobalEventHandlers
ev: FocusEvent
The event.
Returns any
onformdata
Type declaration
Parameters
this: GlobalEventHandlers
ev: FormDataEvent
Returns any
onfullscreenchange
Type declaration
Parameters
this: Element
ev: Event
Returns any
onfullscreenerror
Type declaration
Parameters
this: Element
ev: Event
Returns any
ongotpointercapture
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
oninput
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
oninvalid
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onkeydown
Type declaration
Fires when the user presses a key.
Parameters
this: GlobalEventHandlers
ev: KeyboardEvent
The keyboard event
Returns any
onkeypress
Type declaration
Fires when the user presses an alphanumeric key.
Parameters
this: GlobalEventHandlers
ev: KeyboardEvent
The event.
Returns any
Deprecated
onkeyup
Type declaration
Fires when the user releases a key.
Parameters
this: GlobalEventHandlers
ev: KeyboardEvent
The keyboard event
Returns any
onload
Type declaration
Fires immediately after the browser loads the object.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadeddata
Type declaration
Occurs when media data is loaded at the current playback position.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadedmetadata
Type declaration
Occurs when the duration and dimensions of the media have been determined.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onloadstart
Type declaration
Occurs when Internet Explorer begins looking for media data.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onlostpointercapture
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onmousedown
Type declaration
Fires when the user clicks the object with either mouse button.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseenter
Type declaration
Parameters
this: GlobalEventHandlers
ev: MouseEvent
Returns any
onmouseleave
Type declaration
Parameters
this: GlobalEventHandlers
ev: MouseEvent
Returns any
onmousemove
Type declaration
Fires when the user moves the mouse over the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseout
Type declaration
Fires when the user moves the mouse pointer outside the boundaries of the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseover
Type declaration
Fires when the user moves the mouse pointer into the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onmouseup
Type declaration
Fires when the user releases a mouse button while the mouse is over the object.
Parameters
this: GlobalEventHandlers
ev: MouseEvent
The mouse event.
Returns any
onpaste
Type declaration
Parameters
this: DocumentAndElementEventHandlers
ev: ClipboardEvent
Returns any
onpause
Type declaration
Occurs when playback is paused.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onplay
Type declaration
Occurs when the play method is requested.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onplaying
Type declaration
Occurs when the audio or video has started playing.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onpointercancel
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerdown
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerenter
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerleave
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointermove
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerout
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerover
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onpointerup
Type declaration
Parameters
this: GlobalEventHandlers
ev: PointerEvent
Returns any
onprogress
Type declaration
Occurs to indicate progress while downloading media data.
Parameters
this: GlobalEventHandlers
ev: ProgressEvent<EventTarget>
The event.
Returns any
onratechange
Type declaration
Occurs when the playback rate is increased or decreased.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onreset
Type declaration
Fires when the user resets a form.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onresize
Type declaration
Parameters
this: GlobalEventHandlers
ev: UIEvent
Returns any
onscroll
Type declaration
Fires when the user repositions the scroll box in the scroll bar on the object.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onsecuritypolicyviolation
Type declaration
Parameters
this: GlobalEventHandlers
ev: SecurityPolicyViolationEvent
Returns any
onseeked
Type declaration
Occurs when the seek operation ends.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onseeking
Type declaration
Occurs when the current playback position is moved.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onselect
Type declaration
Fires when the current selection changes.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onselectionchange
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onselectstart
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onslotchange
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
onstalled
Type declaration
Occurs when the download has stopped.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onsubmit
Type declaration
Parameters
this: GlobalEventHandlers
ev: SubmitEvent
Returns any
onsuspend
Type declaration
Occurs if the load operation has been intentionally halted.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
ontimeupdate
Type declaration
Occurs to indicate the current playback position.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
ontoggle
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Optional
ontouchcancelType declaration
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Optional
ontouchendType declaration
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Optional
ontouchmoveType declaration
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
Optional
ontouchstartType declaration
Parameters
this: GlobalEventHandlers
ev: TouchEvent
Returns any
ontransitioncancel
Type declaration
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
ontransitionend
Type declaration
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
ontransitionrun
Type declaration
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
ontransitionstart
Type declaration
Parameters
this: GlobalEventHandlers
ev: TransitionEvent
Returns any
onvolumechange
Type declaration
Occurs when the volume is changed, or playback is muted or unmuted.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onwaiting
Type declaration
Occurs when playback stops because the next frame of a video resource is not available.
Parameters
this: GlobalEventHandlers
ev: Event
The event.
Returns any
onwebkitanimationend
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of
onanimationend
.onwebkitanimationiteration
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of
onanimationiteration
.onwebkitanimationstart
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of
onanimationstart
.onwebkittransitionend
Type declaration
Parameters
this: GlobalEventHandlers
ev: Event
Returns any
Deprecated
This is a legacy alias of
ontransitionend
.onwheel
Type declaration
Parameters
this: GlobalEventHandlers
ev: WheelEvent
Returns any
outerHTML
outer Text
Readonly
ownerReadonly
parentReturns the parent element.
Readonly
parentReturns the parent.
Readonly
partReadonly
prefixReturns the namespace prefix.
Readonly
previousReturns the first preceding sibling that is an element, and null otherwise.
Readonly
previousReturns the previous sibling.
role
Readonly
scrollscroll Left
scroll Top
Readonly
scrollReadonly
shadowReturns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
slot
Returns the value of element's slot content attribute. Can be set to change it.
spellcheck
Readonly
styletab Index
Readonly
tagReturns the HTML-uppercased qualified name.
text Content
title
translate
Methods
add Event Listener
Type Parameters
K extends keyof HTMLElementEventMap
Parameters
type: K
listener: ((this, ev) => any)
Parameters
this: HTMLDivElement
ev: HTMLElementEventMap[K]
Returns any
Optional
options: boolean | AddEventListenerOptionsReturns void
Parameters
type: string
listener: EventListenerOrEventListenerObject
Optional
options: boolean | AddEventListenerOptionsReturns void
after
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.
Parameters
Rest
...nodes: (string | Node)[]Returns void
animate
Parameters
keyframes: PropertyIndexedKeyframes | Keyframe[]
Optional
options: number | KeyframeAnimationOptionsReturns Animation
append
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.
Parameters
Rest
...nodes: (string | Node)[]Returns void
append Child
Type Parameters
T extends Node<T>
Parameters
node: T
Returns T
attach Internals
Returns ElementInternals
attach Shadow
Creates a shadow root for element and returns it.
Parameters
init: ShadowRootInit
Returns ShadowRoot
before
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.
Parameters
Rest
...nodes: (string | Node)[]Returns void
blur
Returns void
click
Returns void
clone Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Parameters
Optional
deep: booleanReturns Node
closest
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
Type Parameters
K extends keyof HTMLElementTagNameMap
Parameters
selector: K
Returns HTMLElementTagNameMap[K]
Type Parameters
K extends keyof SVGElementTagNameMap
Parameters
selector: K
Returns SVGElementTagNameMap[K]
Type Parameters
E extends Element<E> = Element
Parameters
selectors: string
Returns E
compare Document Position
Returns a bitmask indicating the position of other relative to node.
Parameters
other: Node
Returns number
contains
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters
other: Node
Returns boolean
dispatch Event
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.
Parameters
event: Event
Returns boolean
focus
Parameters
Optional
options: FocusOptionsReturns void
get Animations
Parameters
Optional
options: GetAnimationsOptionsReturns Animation[]
get Attribute
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters
qualifiedName: string
Returns string
get AttributeNS
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters
namespace: string
localName: string
Returns string
get Attribute Names
Returns the qualified names of all element's attributes. Can contain duplicates.
Returns string[]
get Attribute Node
Parameters
qualifiedName: string
Returns Attr
get Attribute NodeNS
Parameters
namespace: string
localName: string
Returns Attr
get Bounding Client Rect
Returns DOMRect
get Client Rects
Returns DOMRectList
get Elements By Class Name
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.
Parameters
classNames: string
Returns HTMLCollectionOf<Element>
get Elements By Tag Name
Type Parameters
K extends keyof HTMLElementTagNameMap
Parameters
qualifiedName: K
Returns HTMLCollectionOf<HTMLElementTagNameMap[K]>
Type Parameters
K extends keyof SVGElementTagNameMap
Parameters
qualifiedName: K
Returns HTMLCollectionOf<SVGElementTagNameMap[K]>
Parameters
qualifiedName: string
Returns HTMLCollectionOf<Element>
get Elements By Tag NameNS
Parameters
namespaceURI: "http://www.w3.org/1999/xhtml"
localName: string
Returns HTMLCollectionOf<HTMLElement>
Parameters
namespaceURI: "http://www.w3.org/2000/svg"
localName: string
Returns HTMLCollectionOf<SVGElement>
Parameters
namespace: string
localName: string
Returns HTMLCollectionOf<Element>
get Root Node
Returns node's root.
Parameters
Optional
options: GetRootNodeOptionsReturns Node
has Attribute
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
Parameters
qualifiedName: string
Returns boolean
has AttributeNS
Returns true if element has an attribute whose namespace is namespace and local name is localName.
Parameters
namespace: string
localName: string
Returns boolean
has Attributes
Returns true if element has attributes, and false otherwise.
Returns boolean
has Child Nodes
Returns whether node has children.
Returns boolean
has Pointer Capture
Parameters
pointerId: number
Returns boolean
insert Adjacent Element
Parameters
where: InsertPosition
element: Element
Returns Element
insert AdjacentHTML
Parameters
position: InsertPosition
text: string
Returns void
insert Adjacent Text
Parameters
where: InsertPosition
data: string
Returns void
insert Before
Type Parameters
T extends Node<T>
Parameters
node: T
child: Node
Returns T
is Default Namespace
Parameters
namespace: string
Returns boolean
is Equal Node
Returns whether node and otherNode have the same properties.
Parameters
otherNode: Node
Returns boolean
is Same Node
Parameters
otherNode: Node
Returns boolean
lookup NamespaceURI
Parameters
prefix: string
Returns string
lookup Prefix
Parameters
namespace: string
Returns string
matches
Returns true if matching selectors against element's root yields element, and false otherwise.
Parameters
selectors: string
Returns boolean
normalize
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Returns void
prepend
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.
Parameters
Rest
...nodes: (string | Node)[]Returns void
query Selector
Returns the first element that is a descendant of node that matches selectors.
Type Parameters
K extends keyof HTMLElementTagNameMap
Parameters
selectors: K
Returns HTMLElementTagNameMap[K]
Type Parameters
K extends keyof SVGElementTagNameMap
Parameters
selectors: K
Returns SVGElementTagNameMap[K]
Type Parameters
E extends Element<E> = Element
Parameters
selectors: string
Returns E
query Selector All
Returns all element descendants of node that match selectors.
Type Parameters
K extends keyof HTMLElementTagNameMap
Parameters
selectors: K
Returns NodeListOf<HTMLElementTagNameMap[K]>
Type Parameters
K extends keyof SVGElementTagNameMap
Parameters
selectors: K
Returns NodeListOf<SVGElementTagNameMap[K]>
Type Parameters
E extends Element<E> = Element
Parameters
selectors: string
Returns NodeListOf<E>
release Pointer Capture
Parameters
pointerId: number
Returns void
remove
Removes node.
Returns void
remove Attribute
Removes element's first attribute whose qualified name is qualifiedName.
Parameters
qualifiedName: string
Returns void
remove AttributeNS
Removes element's attribute whose namespace is namespace and local name is localName.
Parameters
namespace: string
localName: string
Returns void
remove Attribute Node
Parameters
attr: Attr
Returns Attr
remove Child
Type Parameters
T extends Node<T>
Parameters
child: T
Returns T
remove Event Listener
Type Parameters
K extends keyof HTMLElementEventMap
Parameters
type: K
listener: ((this, ev) => any)
Parameters
this: HTMLDivElement
ev: HTMLElementEventMap[K]
Returns any
Optional
options: boolean | EventListenerOptionsReturns void
Parameters
type: string
listener: EventListenerOrEventListenerObject
Optional
options: boolean | EventListenerOptionsReturns void
replace Child
Type Parameters
T extends Node<T>
Parameters
node: Node
child: T
Returns T
replace Children
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.
Parameters
Rest
...nodes: (string | Node)[]Returns void
replace With
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.
Parameters
Rest
...nodes: (string | Node)[]Returns void
request Fullscreen
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.
Parameters
Optional
options: FullscreenOptionsReturns Promise<void>
request Pointer Lock
Returns void
scroll
Parameters
Optional
options: ScrollToOptionsReturns void
Parameters
x: number
y: number
Returns void
scroll By
Parameters
Optional
options: ScrollToOptionsReturns void
Parameters
x: number
y: number
Returns void
scroll Into View
Parameters
Optional
arg: boolean | ScrollIntoViewOptionsReturns void
scroll To
Parameters
Optional
options: ScrollToOptionsReturns void
Parameters
x: number
y: number
Returns void
set Attribute
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
Parameters
qualifiedName: string
value: string
Returns void
set AttributeNS
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
Parameters
namespace: string
qualifiedName: string
value: string
Returns void
set Attribute Node
Parameters
attr: Attr
Returns Attr
set Attribute NodeNS
Parameters
attr: Attr
Returns Attr
set Pointer Capture
Parameters
pointerId: number
Returns void
toggle Attribute
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.
Parameters
qualifiedName: string
Optional
force: booleanReturns boolean
webkit Matches Selector
Parameters
selectors: string
Returns boolean
Deprecated
This is a legacy alias of
matches
.Settings
Member Visibility
Theme
On This Page