Provides methods to manipulate elements. DeprecatedMDN Reference Hierarchy HTMLElement HTMLMarqueeElement Index Properties ATTRIBUTE_NODE CDATA_SECTION_NODE COMMENT_NODE DOCUMENT_FRAGMENT_NODE DOCUMENT_NODE DOCUMENT_POSITION_CONTAINED_BY DOCUMENT_POSITION_CONTAINS DOCUMENT_POSITION_DISCONNECTED DOCUMENT_POSITION_FOLLOWING DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC DOCUMENT_POSITION_PRECEDING DOCUMENT_TYPE_NODE ELEMENT_NODE ENTITY_NODE ENTITY_REFERENCE_NODE NOTATION_NODE PROCESSING_INSTRUCTION_NODE TEXT_NODE accessKey accessKeyLabel ariaAtomic ariaAutoComplete ariaBusy ariaChecked ariaColCount ariaColIndex ariaColSpan ariaCurrent ariaDisabled ariaExpanded ariaHasPopup ariaHidden ariaInvalid ariaKeyShortcuts ariaLabel ariaLevel ariaLive ariaModal ariaMultiLine ariaMultiSelectable ariaOrientation ariaPlaceholder ariaPosInSet ariaPressed ariaReadOnly ariaRequired ariaRoleDescription ariaRowCount ariaRowIndex ariaRowSpan ariaSelected ariaSetSize ariaSort ariaValueMax ariaValueMin ariaValueNow ariaValueText assignedSlot attributeStyleMap attributes autocapitalize autofocus baseURI behavior bgColor childElementCount childNodes children classList className clientHeight clientLeft clientTop clientWidth contentEditable dataset dir direction draggable enterKeyHint firstChild firstElementChild height hidden hspace id inert innerHTML innerText inputMode isConnected isContentEditable lang lastChild lastElementChild localName loop namespaceURI nextElementSibling nextSibling nodeName nodeType nodeValue nonce? offsetHeight offsetLeft offsetParent offsetTop offsetWidth onabort onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput onbeforexrselect onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncopy oncuechange oncut ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onformdata onfullscreenchange onfullscreenerror ongotpointercapture oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onlostpointercapture onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointermove onpointerout onpointerover onpointerup onprogress onratechange onreset onresize onscroll onsecuritypolicyviolation onseeked onseeking onselect onselectionchange onselectstart onslotchange onstalled onsubmit onsuspend ontimeupdate ontoggle ontouchcancel? ontouchend? ontouchmove? ontouchstart? ontransitioncancel ontransitionend ontransitionrun ontransitionstart onvolumechange onwaiting onwebkitanimationend onwebkitanimationiteration onwebkitanimationstart onwebkittransitionend onwheel outerHTML outerText ownerDocument parentElement parentNode part prefix previousElementSibling previousSibling role scrollAmount scrollDelay scrollHeight scrollLeft scrollTop scrollWidth shadowRoot slot spellcheck style tabIndex tagName textContent title translate trueSpeed vspace width Methods addEventListener after animate append appendChild attachInternals attachShadow before blur checkVisibility click cloneNode closest compareDocumentPosition computedStyleMap contains dispatchEvent focus getAnimations getAttribute getAttributeNS getAttributeNames getAttributeNode getAttributeNodeNS getBoundingClientRect getClientRects getElementsByClassName getElementsByTagName getElementsByTagNameNS getRootNode hasAttribute hasAttributeNS hasAttributes hasChildNodes hasPointerCapture insertAdjacentElement insertAdjacentHTML insertAdjacentText insertBefore isDefaultNamespace isEqualNode isSameNode lookupNamespaceURI lookupPrefix matches normalize prepend querySelector querySelectorAll releasePointerCapture remove removeAttribute removeAttributeNS removeAttributeNode removeChild removeEventListener replaceChild replaceChildren replaceWith requestFullscreen requestPointerLock scroll scrollBy scrollIntoView scrollTo setAttribute setAttributeNS setAttributeNode setAttributeNodeNS setPointerCapture start stop toggleAttribute webkitMatchesSelector Properties Readonly ATTRIBUTE_NODE ATTRIBUTE_NODE: 2 Readonly CDATA_SECTION_NODE CDATA_SECTION_NODE: 4 node is a CDATASection node. Readonly COMMENT_NODE COMMENT_NODE: 8 node is a Comment node. Readonly DOCUMENT_FRAGMENT_NODE DOCUMENT_FRAGMENT_NODE: 11 node is a DocumentFragment node. Readonly DOCUMENT_NODE DOCUMENT_NODE: 9 node is a document. Readonly DOCUMENT_POSITION_CONTAINED_BY DOCUMENT_POSITION_CONTAINED_BY: 16 Set when other is a descendant of node. Readonly DOCUMENT_POSITION_CONTAINS DOCUMENT_POSITION_CONTAINS: 8 Set when other is an ancestor of node. Readonly DOCUMENT_POSITION_DISCONNECTED DOCUMENT_POSITION_DISCONNECTED: 1 Set when node and other are not in the same tree. Readonly DOCUMENT_POSITION_FOLLOWING DOCUMENT_POSITION_FOLLOWING: 4 Set when other is following node. Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32 Readonly DOCUMENT_POSITION_PRECEDING DOCUMENT_POSITION_PRECEDING: 2 Set when other is preceding node. Readonly DOCUMENT_TYPE_NODE DOCUMENT_TYPE_NODE: 10 node is a doctype. Readonly ELEMENT_NODE ELEMENT_NODE: 1 node is an element. Readonly ENTITY_NODE ENTITY_NODE: 6 Readonly ENTITY_REFERENCE_NODE ENTITY_REFERENCE_NODE: 5 Readonly NOTATION_NODE NOTATION_NODE: 12 Readonly PROCESSING_INSTRUCTION_NODE PROCESSING_INSTRUCTION_NODE: 7 node is a ProcessingInstruction node. Readonly TEXT_NODE TEXT_NODE: 3 node is a Text node. accessKey accessKey: string MDN Reference Readonly accessKeyLabel accessKeyLabel: string MDN Reference ariaAtomic ariaAtomic: string MDN Reference ariaAutoComplete ariaAutoComplete: string MDN Reference ariaBusy ariaBusy: string MDN Reference ariaChecked ariaChecked: string MDN Reference ariaColCount ariaColCount: string MDN Reference ariaColIndex ariaColIndex: string MDN Reference ariaColSpan ariaColSpan: string MDN Reference ariaCurrent ariaCurrent: string MDN Reference ariaDisabled ariaDisabled: string MDN Reference ariaExpanded ariaExpanded: string MDN Reference ariaHasPopup ariaHasPopup: string MDN Reference ariaHidden ariaHidden: string MDN Reference ariaInvalid ariaInvalid: string ariaKeyShortcuts ariaKeyShortcuts: string MDN Reference ariaLabel ariaLabel: string MDN Reference ariaLevel ariaLevel: string MDN Reference ariaLive ariaLive: string MDN Reference ariaModal ariaModal: string MDN Reference ariaMultiLine ariaMultiLine: string MDN Reference ariaMultiSelectable ariaMultiSelectable: string MDN Reference ariaOrientation ariaOrientation: string MDN Reference ariaPlaceholder ariaPlaceholder: string MDN Reference ariaPosInSet ariaPosInSet: string MDN Reference ariaPressed ariaPressed: string MDN Reference ariaReadOnly ariaReadOnly: string MDN Reference ariaRequired ariaRequired: string MDN Reference ariaRoleDescription ariaRoleDescription: string MDN Reference ariaRowCount ariaRowCount: string MDN Reference ariaRowIndex ariaRowIndex: string MDN Reference ariaRowSpan ariaRowSpan: string MDN Reference ariaSelected ariaSelected: string MDN Reference ariaSetSize ariaSetSize: string MDN Reference ariaSort ariaSort: string MDN Reference ariaValueMax ariaValueMax: string MDN Reference ariaValueMin ariaValueMin: string MDN Reference ariaValueNow ariaValueNow: string MDN Reference ariaValueText ariaValueText: string MDN Reference Readonly assignedSlot assignedSlot: HTMLSlotElement MDN Reference Readonly attributeStyleMap attributeStyleMap: StylePropertyMap Readonly attributes attributes: NamedNodeMap MDN Reference autocapitalize autocapitalize: string autofocus autofocus: boolean Readonly baseURI baseURI: string Returns node's node document's document base URL. MDN Reference behavior behavior: string Deprecated bgColor bgColor: string Deprecated Readonly childElementCount childElementCount: number MDN Reference Readonly childNodes childNodes: NodeListOf<ChildNode> Returns the children. MDN Reference Readonly children children: HTMLCollection Returns the child elements. MDN Reference Readonly classList classList: DOMTokenList Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. MDN Reference className className: string Returns the value of element's class content attribute. Can be set to change it. MDN Reference Readonly clientHeight clientHeight: number MDN Reference Readonly clientLeft clientLeft: number MDN Reference Readonly clientTop clientTop: number MDN Reference Readonly clientWidth clientWidth: number MDN Reference contentEditable contentEditable: string MDN Reference Readonly dataset dataset: DOMStringMap MDN Reference dir dir: string MDN Reference direction direction: string Deprecated draggable draggable: boolean MDN Reference enterKeyHint enterKeyHint: string MDN Reference Readonly firstChild firstChild: ChildNode Returns the first child. MDN Reference Readonly firstElementChild firstElementChild: Element Returns the first child that is an element, and null otherwise. MDN Reference height height: string Deprecated hidden hidden: boolean MDN Reference hspace hspace: number Deprecated id id: string Returns the value of element's id content attribute. Can be set to change it. MDN Reference inert inert: boolean MDN Reference innerHTML innerHTML: string MDN Reference innerText innerText: string MDN Reference inputMode inputMode: string MDN Reference Readonly isConnected isConnected: boolean Returns true if node is connected and false otherwise. MDN Reference Readonly isContentEditable isContentEditable: boolean MDN Reference lang lang: string MDN Reference Readonly lastChild lastChild: ChildNode Returns the last child. MDN Reference Readonly lastElementChild lastElementChild: Element Returns the last child that is an element, and null otherwise. MDN Reference Readonly localName localName: string Returns the local name. MDN Reference loop loop: number Deprecated Readonly namespaceURI namespaceURI: string Returns the namespace. MDN Reference Readonly nextElementSibling nextElementSibling: Element Returns the first following sibling that is an element, and null otherwise. MDN Reference Readonly nextSibling nextSibling: ChildNode Returns the next sibling. MDN Reference Readonly nodeName nodeName: string Returns a string appropriate for the type of node. MDN Reference Readonly nodeType nodeType: number Returns the type of node. MDN Reference nodeValue nodeValue: string MDN Reference Optional nonce nonce?: string MDN Reference Readonly offsetHeight offsetHeight: number MDN Reference Readonly offsetLeft offsetLeft: number MDN Reference Readonly offsetParent offsetParent: Element MDN Reference Readonly offsetTop offsetTop: number MDN Reference Readonly offsetWidth offsetWidth: number MDN Reference onabort onabort: ((this, ev) => any) Type declaration (this, ev): any Fires when the user aborts the download. Parameters this: GlobalEventHandlers ev: UIEvent The event. MDN Reference Returns any onanimationcancel onanimationcancel: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: AnimationEvent Returns any onanimationend onanimationend: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: AnimationEvent Returns any onanimationiteration onanimationiteration: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: AnimationEvent Returns any onanimationstart onanimationstart: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: AnimationEvent Returns any onauxclick onauxclick: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: MouseEvent Returns any onbeforeinput onbeforeinput: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: InputEvent Returns any onbeforexrselect onbeforexrselect: ((this, ev) => any) Type declaration (this, ev): any An XRSessionEvent of type beforexrselect is dispatched on the DOM overlay element before generating a WebXR selectstart input event if the -Z axis of the input source's targetRaySpace intersects the DOM overlay element at the time the input device's primary action is triggered. Parameters this: GlobalEventHandlers ev: XRSessionEvent Returns any onblur onblur: ((this, ev) => any) Type declaration (this, ev): any Fires when the object loses the input focus. Parameters this: GlobalEventHandlers ev: FocusEvent The focus event. MDN Reference Returns any oncancel oncancel: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any oncanplay oncanplay: ((this, ev) => any) Type declaration (this, ev): any Occurs when playback is possible, but would require further buffering. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any oncanplaythrough oncanplaythrough: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any onchange onchange: ((this, ev) => any) Type declaration (this, ev): any Fires when the contents of the object or selection have changed. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onclick onclick: ((this, ev) => any) Type declaration (this, ev): any Fires when the user clicks the left mouse button on the object Parameters this: GlobalEventHandlers ev: MouseEvent The mouse event. MDN Reference Returns any onclose onclose: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any oncontextmenu oncontextmenu: ((this, ev) => any) Type declaration (this, ev): any 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. MDN Reference Returns any oncopy oncopy: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: ClipboardEvent Returns any oncuechange oncuechange: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any oncut oncut: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: ClipboardEvent Returns any ondblclick ondblclick: ((this, ev) => any) Type declaration (this, ev): any Fires when the user double-clicks the object. Parameters this: GlobalEventHandlers ev: MouseEvent The mouse event. MDN Reference Returns any ondrag ondrag: ((this, ev) => any) Type declaration (this, ev): any Fires on the source object continuously during a drag operation. Parameters this: GlobalEventHandlers ev: DragEvent The event. MDN Reference Returns any ondragend ondragend: ((this, ev) => 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 this: GlobalEventHandlers ev: DragEvent The event. MDN Reference Returns any ondragenter ondragenter: ((this, ev) => any) Type declaration (this, ev): any Fires on the target element when the user drags the object to a valid drop target. Parameters this: GlobalEventHandlers ev: DragEvent The drag event. MDN Reference Returns any ondragleave ondragleave: ((this, ev) => 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 this: GlobalEventHandlers ev: DragEvent The drag event. MDN Reference Returns any ondragover ondragover: ((this, ev) => any) Type declaration (this, ev): any Fires on the target element continuously while the user drags the object over a valid drop target. Parameters this: GlobalEventHandlers ev: DragEvent The event. MDN Reference Returns any ondragstart ondragstart: ((this, ev) => any) Type declaration (this, ev): any Fires on the source object when the user starts to drag a text selection or selected object. Parameters this: GlobalEventHandlers ev: DragEvent The event. MDN Reference Returns any ondrop ondrop: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: DragEvent Returns any ondurationchange ondurationchange: ((this, ev) => any) Type declaration (this, ev): any Occurs when the duration attribute is updated. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onemptied onemptied: ((this, ev) => any) Type declaration (this, ev): any Occurs when the media element is reset to its initial state. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onended onended: ((this, ev) => any) Type declaration (this, ev): any Occurs when the end of playback is reached. Parameters this: GlobalEventHandlers ev: Event The event MDN Reference Returns any onerror onerror: OnErrorEventHandlerNonNull Fires when an error occurs during object loading. ParamThe event. MDN Reference onfocus onfocus: ((this, ev) => any) Type declaration (this, ev): any Fires when the object receives focus. Parameters this: GlobalEventHandlers ev: FocusEvent The event. MDN Reference Returns any onformdata onformdata: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: FormDataEvent Returns any onfullscreenchange onfullscreenchange: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: Element ev: Event Returns any onfullscreenerror onfullscreenerror: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: Element ev: Event Returns any ongotpointercapture ongotpointercapture: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any oninput oninput: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any oninvalid oninvalid: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any onkeydown onkeydown: ((this, ev) => any) Type declaration (this, ev): any Fires when the user presses a key. Parameters this: GlobalEventHandlers ev: KeyboardEvent The keyboard event MDN Reference Returns any onkeypress onkeypress: ((this, ev) => any) Type declaration (this, ev): any Fires when the user presses an alphanumeric key. Parameters this: GlobalEventHandlers ev: KeyboardEvent The event. Returns any DeprecatedMDN Reference onkeyup onkeyup: ((this, ev) => any) Type declaration (this, ev): any Fires when the user releases a key. Parameters this: GlobalEventHandlers ev: KeyboardEvent The keyboard event MDN Reference Returns any onload onload: ((this, ev) => any) Type declaration (this, ev): any Fires immediately after the browser loads the object. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onloadeddata onloadeddata: ((this, ev) => any) Type declaration (this, ev): any Occurs when media data is loaded at the current playback position. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onloadedmetadata onloadedmetadata: ((this, ev) => any) Type declaration (this, ev): any Occurs when the duration and dimensions of the media have been determined. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onloadstart onloadstart: ((this, ev) => any) Type declaration (this, ev): any Occurs when Internet Explorer begins looking for media data. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onlostpointercapture onlostpointercapture: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onmousedown onmousedown: ((this, ev) => any) Type declaration (this, ev): any Fires when the user clicks the object with either mouse button. Parameters this: GlobalEventHandlers ev: MouseEvent The mouse event. MDN Reference Returns any onmouseenter onmouseenter: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: MouseEvent Returns any onmouseleave onmouseleave: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: MouseEvent Returns any onmousemove onmousemove: ((this, ev) => any) Type declaration (this, ev): any Fires when the user moves the mouse over the object. Parameters this: GlobalEventHandlers ev: MouseEvent The mouse event. MDN Reference Returns any onmouseout onmouseout: ((this, ev) => any) Type declaration (this, ev): any Fires when the user moves the mouse pointer outside the boundaries of the object. Parameters this: GlobalEventHandlers ev: MouseEvent The mouse event. MDN Reference Returns any onmouseover onmouseover: ((this, ev) => any) Type declaration (this, ev): any Fires when the user moves the mouse pointer into the object. Parameters this: GlobalEventHandlers ev: MouseEvent The mouse event. MDN Reference Returns any onmouseup onmouseup: ((this, ev) => any) Type declaration (this, ev): any Fires when the user releases a mouse button while the mouse is over the object. Parameters this: GlobalEventHandlers ev: MouseEvent The mouse event. MDN Reference Returns any onpaste onpaste: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: ClipboardEvent Returns any onpause onpause: ((this, ev) => any) Type declaration (this, ev): any Occurs when playback is paused. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onplay onplay: ((this, ev) => any) Type declaration (this, ev): any Occurs when the play method is requested. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onplaying onplaying: ((this, ev) => any) Type declaration (this, ev): any Occurs when the audio or video has started playing. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onpointercancel onpointercancel: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onpointerdown onpointerdown: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onpointerenter onpointerenter: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onpointerleave onpointerleave: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onpointermove onpointermove: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onpointerout onpointerout: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onpointerover onpointerover: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onpointerup onpointerup: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: PointerEvent Returns any onprogress onprogress: ((this, ev) => any) Type declaration (this, ev): any Occurs to indicate progress while downloading media data. Parameters this: GlobalEventHandlers ev: ProgressEvent<EventTarget> The event. MDN Reference Returns any onratechange onratechange: ((this, ev) => any) Type declaration (this, ev): any Occurs when the playback rate is increased or decreased. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onreset onreset: ((this, ev) => any) Type declaration (this, ev): any Fires when the user resets a form. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onresize onresize: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: UIEvent Returns any onscroll onscroll: ((this, ev) => any) Type declaration (this, ev): any Fires when the user repositions the scroll box in the scroll bar on the object. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onsecuritypolicyviolation onsecuritypolicyviolation: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: SecurityPolicyViolationEvent Returns any onseeked onseeked: ((this, ev) => any) Type declaration (this, ev): any Occurs when the seek operation ends. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onseeking onseeking: ((this, ev) => any) Type declaration (this, ev): any Occurs when the current playback position is moved. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onselect onselect: ((this, ev) => any) Type declaration (this, ev): any Fires when the current selection changes. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onselectionchange onselectionchange: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any onselectstart onselectstart: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any onslotchange onslotchange: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any onstalled onstalled: ((this, ev) => any) Type declaration (this, ev): any Occurs when the download has stopped. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onsubmit onsubmit: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: SubmitEvent Returns any onsuspend onsuspend: ((this, ev) => any) Type declaration (this, ev): any Occurs if the load operation has been intentionally halted. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any ontimeupdate ontimeupdate: ((this, ev) => any) Type declaration (this, ev): any Occurs to indicate the current playback position. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any ontoggle ontoggle: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: Event Returns any Optional ontouchcancel ontouchcancel?: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TouchEvent Returns any Optional ontouchend ontouchend?: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TouchEvent Returns any Optional ontouchmove ontouchmove?: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TouchEvent Returns any Optional ontouchstart ontouchstart?: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TouchEvent Returns any ontransitioncancel ontransitioncancel: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TransitionEvent Returns any ontransitionend ontransitionend: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TransitionEvent Returns any ontransitionrun ontransitionrun: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TransitionEvent Returns any ontransitionstart ontransitionstart: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: TransitionEvent Returns any onvolumechange onvolumechange: ((this, ev) => any) Type declaration (this, ev): any Occurs when the volume is changed, or playback is muted or unmuted. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onwaiting onwaiting: ((this, ev) => any) Type declaration (this, ev): any Occurs when playback stops because the next frame of a video resource is not available. Parameters this: GlobalEventHandlers ev: Event The event. MDN Reference Returns any onwebkitanimationend onwebkitanimationend: ((this, ev) => any) Type declaration (this, ev): any Parameters this: GlobalEventHandlers ev: Event Returns any DeprecatedThis is a legacy alias of onanimationend. MDN Reference onwebkitanimationiteration onwebkitanimationiteration: ((this, ev) => any) Type declaration (this, ev): any Parameters this: GlobalEventHandlers ev: Event Returns any DeprecatedThis is a legacy alias of onanimationiteration. MDN Reference onwebkitanimationstart onwebkitanimationstart: ((this, ev) => any) Type declaration (this, ev): any Parameters this: GlobalEventHandlers ev: Event Returns any DeprecatedThis is a legacy alias of onanimationstart. MDN Reference onwebkittransitionend onwebkittransitionend: ((this, ev) => any) Type declaration (this, ev): any Parameters this: GlobalEventHandlers ev: Event Returns any DeprecatedThis is a legacy alias of ontransitionend. MDN Reference onwheel onwheel: ((this, ev) => any) Type declaration (this, ev): any MDN Reference Parameters this: GlobalEventHandlers ev: WheelEvent Returns any outerHTML outerHTML: string MDN Reference outerText outerText: string MDN Reference Readonly ownerDocument ownerDocument: Document Readonly parentElement parentElement: HTMLElement Returns the parent element. MDN Reference Readonly parentNode parentNode: ParentNode Returns the parent. MDN Reference Readonly part part: DOMTokenList MDN Reference Readonly prefix prefix: string Returns the namespace prefix. MDN Reference Readonly previousElementSibling previousElementSibling: Element Returns the first preceding sibling that is an element, and null otherwise. MDN Reference Readonly previousSibling previousSibling: ChildNode Returns the previous sibling. MDN Reference role role: string scrollAmount scrollAmount: number Deprecated scrollDelay scrollDelay: number Deprecated Readonly scrollHeight scrollHeight: number MDN Reference scrollLeft scrollLeft: number MDN Reference scrollTop scrollTop: number MDN Reference Readonly scrollWidth scrollWidth: number MDN Reference Readonly shadowRoot shadowRoot: ShadowRoot Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. MDN Reference slot slot: string Returns the value of element's slot content attribute. Can be set to change it. MDN Reference spellcheck spellcheck: boolean MDN Reference Readonly style style: CSSStyleDeclaration MDN Reference tabIndex tabIndex: number MDN Reference Readonly tagName tagName: string Returns the HTML-uppercased qualified name. MDN Reference textContent textContent: string MDN Reference title title: string MDN Reference translate translate: boolean trueSpeed trueSpeed: boolean Deprecated vspace vspace: number Deprecated width width: string Deprecated Methods addEventListener addEventListener<K>(type, listener, options?): void Type Parameters K extends keyof HTMLElementEventMap Parameters type: K listener: ((this, ev) => any) (this, ev): any Parameters this: HTMLMarqueeElement ev: HTMLElementEventMap[K] Returns any Optional options: boolean | AddEventListenerOptions Returns void addEventListener(type, listener, options?): void Parameters type: string listener: EventListenerOrEventListenerObject Optional options: boolean | AddEventListenerOptions Returns void 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 Rest ...nodes: (string | Node)[] Returns void animate animate(keyframes, options?): Animation MDN Reference Parameters keyframes: PropertyIndexedKeyframes | Keyframe[] Optional options: number | KeyframeAnimationOptions Returns Animation 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 Rest ...nodes: (string | Node)[] Returns void appendChild appendChild<T>(node): T MDN Reference Type Parameters T extends Node Parameters node: T Returns T attachInternals attachInternals(): ElementInternals MDN Reference Returns ElementInternals attachShadow attachShadow(init): ShadowRoot Creates a shadow root for element and returns it. MDN Reference Parameters init: ShadowRootInit Returns ShadowRoot 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 Rest ...nodes: (string | Node)[] Returns void blur blur(): void MDN Reference Returns void checkVisibility checkVisibility(options?): boolean Parameters Optional options: CheckVisibilityOptions Returns boolean click click(): void MDN Reference Returns void cloneNode cloneNode(deep?): Node Returns a copy of node. If deep is true, the copy also includes the node's descendants. MDN Reference Parameters Optional deep: boolean Returns Node closest closest<K>(selector): HTMLElementTagNameMap[K] Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. MDN Reference Type Parameters K extends keyof HTMLElementTagNameMap Parameters selector: K Returns HTMLElementTagNameMap[K] closest<K>(selector): SVGElementTagNameMap[K] Type Parameters K extends keyof SVGElementTagNameMap Parameters selector: K Returns SVGElementTagNameMap[K] closest<K>(selector): MathMLElementTagNameMap[K] Type Parameters K extends keyof MathMLElementTagNameMap Parameters selector: K Returns MathMLElementTagNameMap[K] closest<E>(selectors): E Type Parameters E extends Element = Element Parameters selectors: string Returns E compareDocumentPosition compareDocumentPosition(other): number Returns a bitmask indicating the position of other relative to node. MDN Reference Parameters other: Node Returns number computedStyleMap computedStyleMap(): StylePropertyMapReadOnly MDN Reference Returns StylePropertyMapReadOnly contains contains(other): boolean Returns true if other is an inclusive descendant of node, and false otherwise. MDN Reference Parameters other: Node Returns boolean 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 event: Event Returns boolean focus focus(options?): void MDN Reference Parameters Optional options: FocusOptions Returns void getAnimations getAnimations(options?): Animation[] MDN Reference Parameters Optional options: GetAnimationsOptions Returns Animation[] 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 qualifiedName: string Returns string 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 namespace: string localName: string Returns string getAttributeNames getAttributeNames(): string[] Returns the qualified names of all element's attributes. Can contain duplicates. MDN Reference Returns string[] getAttributeNode getAttributeNode(qualifiedName): Attr MDN Reference Parameters qualifiedName: string Returns Attr getAttributeNodeNS getAttributeNodeNS(namespace, localName): Attr MDN Reference Parameters namespace: string localName: string Returns Attr getBoundingClientRect getBoundingClientRect(): DOMRect MDN Reference Returns DOMRect getClientRects getClientRects(): DOMRectList MDN Reference Returns DOMRectList 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 classNames: string Returns HTMLCollectionOf<Element> getElementsByTagName getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]> MDN Reference Type Parameters K extends keyof HTMLElementTagNameMap Parameters qualifiedName: K Returns HTMLCollectionOf<HTMLElementTagNameMap[K]> getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]> Type Parameters K extends keyof SVGElementTagNameMap Parameters qualifiedName: K Returns HTMLCollectionOf<SVGElementTagNameMap[K]> getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]> Type Parameters K extends keyof MathMLElementTagNameMap Parameters qualifiedName: K Returns HTMLCollectionOf<MathMLElementTagNameMap[K]> getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]> Type Parameters K extends keyof HTMLElementDeprecatedTagNameMap Parameters qualifiedName: K Returns HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]> Deprecated getElementsByTagName(qualifiedName): HTMLCollectionOf<Element> Parameters qualifiedName: string Returns HTMLCollectionOf<Element> getElementsByTagNameNS getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement> MDN Reference Parameters namespaceURI: "http://www.w3.org/1999/xhtml" localName: string Returns HTMLCollectionOf<HTMLElement> getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement> Parameters namespaceURI: "http://www.w3.org/2000/svg" localName: string Returns HTMLCollectionOf<SVGElement> getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement> Parameters namespaceURI: "http://www.w3.org/1998/Math/MathML" localName: string Returns HTMLCollectionOf<MathMLElement> getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element> Parameters namespace: string localName: string Returns HTMLCollectionOf<Element> getRootNode getRootNode(options?): Node Returns node's root. MDN Reference Parameters Optional options: GetRootNodeOptions Returns Node hasAttribute hasAttribute(qualifiedName): boolean Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. MDN Reference Parameters qualifiedName: string Returns boolean hasAttributeNS hasAttributeNS(namespace, localName): boolean Returns true if element has an attribute whose namespace is namespace and local name is localName. MDN Reference Parameters namespace: string localName: string Returns boolean hasAttributes hasAttributes(): boolean Returns true if element has attributes, and false otherwise. MDN Reference Returns boolean hasChildNodes hasChildNodes(): boolean Returns whether node has children. MDN Reference Returns boolean hasPointerCapture hasPointerCapture(pointerId): boolean MDN Reference Parameters pointerId: number Returns boolean insertAdjacentElement insertAdjacentElement(where, element): Element MDN Reference Parameters where: InsertPosition element: Element Returns Element insertAdjacentHTML insertAdjacentHTML(position, text): void MDN Reference Parameters position: InsertPosition text: string Returns void insertAdjacentText insertAdjacentText(where, data): void MDN Reference Parameters where: InsertPosition data: string Returns void insertBefore insertBefore<T>(node, child): T MDN Reference Type Parameters T extends Node Parameters node: T child: Node Returns T isDefaultNamespace isDefaultNamespace(namespace): boolean MDN Reference Parameters namespace: string Returns boolean isEqualNode isEqualNode(otherNode): boolean Returns whether node and otherNode have the same properties. MDN Reference Parameters otherNode: Node Returns boolean isSameNode isSameNode(otherNode): boolean MDN Reference Parameters otherNode: Node Returns boolean lookupNamespaceURI lookupNamespaceURI(prefix): string MDN Reference Parameters prefix: string Returns string lookupPrefix lookupPrefix(namespace): string MDN Reference Parameters namespace: string Returns string matches matches(selectors): boolean Returns true if matching selectors against element's root yields element, and false otherwise. MDN Reference Parameters selectors: string Returns boolean 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 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 Rest ...nodes: (string | Node)[] Returns void querySelector querySelector<K>(selectors): HTMLElementTagNameMap[K] Returns the first element that is a descendant of node that matches selectors. MDN Reference Type Parameters K extends keyof HTMLElementTagNameMap Parameters selectors: K Returns HTMLElementTagNameMap[K] querySelector<K>(selectors): SVGElementTagNameMap[K] Type Parameters K extends keyof SVGElementTagNameMap Parameters selectors: K Returns SVGElementTagNameMap[K] querySelector<K>(selectors): MathMLElementTagNameMap[K] Type Parameters K extends keyof MathMLElementTagNameMap Parameters selectors: K Returns MathMLElementTagNameMap[K] querySelector<K>(selectors): HTMLElementDeprecatedTagNameMap[K] Type Parameters K extends keyof HTMLElementDeprecatedTagNameMap Parameters selectors: K Returns HTMLElementDeprecatedTagNameMap[K] Deprecated querySelector<E>(selectors): E Type Parameters E extends Element = Element Parameters selectors: string Returns E querySelectorAll querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]> Returns all element descendants of node that match selectors. MDN Reference Type Parameters K extends keyof HTMLElementTagNameMap Parameters selectors: K Returns NodeListOf<HTMLElementTagNameMap[K]> querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]> Type Parameters K extends keyof SVGElementTagNameMap Parameters selectors: K Returns NodeListOf<SVGElementTagNameMap[K]> querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]> Type Parameters K extends keyof MathMLElementTagNameMap Parameters selectors: K Returns NodeListOf<MathMLElementTagNameMap[K]> querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]> Type Parameters K extends keyof HTMLElementDeprecatedTagNameMap Parameters selectors: K Returns NodeListOf<HTMLElementDeprecatedTagNameMap[K]> Deprecated querySelectorAll<E>(selectors): NodeListOf<E> Type Parameters E extends Element = Element Parameters selectors: string Returns NodeListOf<E> releasePointerCapture releasePointerCapture(pointerId): void MDN Reference Parameters pointerId: number Returns void remove remove(): void Removes node. MDN Reference Returns void removeAttribute removeAttribute(qualifiedName): void Removes element's first attribute whose qualified name is qualifiedName. MDN Reference Parameters qualifiedName: string Returns void removeAttributeNS removeAttributeNS(namespace, localName): void Removes element's attribute whose namespace is namespace and local name is localName. MDN Reference Parameters namespace: string localName: string Returns void removeAttributeNode removeAttributeNode(attr): Attr MDN Reference Parameters attr: Attr Returns Attr removeChild removeChild<T>(child): T MDN Reference Type Parameters T extends Node Parameters child: T Returns T removeEventListener removeEventListener<K>(type, listener, options?): void Type Parameters K extends keyof HTMLElementEventMap Parameters type: K listener: ((this, ev) => any) (this, ev): any Parameters this: HTMLMarqueeElement ev: HTMLElementEventMap[K] Returns any Optional options: boolean | EventListenerOptions Returns void removeEventListener(type, listener, options?): void Parameters type: string listener: EventListenerOrEventListenerObject Optional options: boolean | EventListenerOptions Returns void replaceChild replaceChild<T>(node, child): T MDN Reference Type Parameters T extends Node Parameters node: Node child: T Returns T 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 Rest ...nodes: (string | Node)[] Returns void 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 Rest ...nodes: (string | Node)[] Returns void 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 Optional options: FullscreenOptions Returns Promise<void> requestPointerLock requestPointerLock(): void MDN Reference Returns void scroll scroll(options?): void MDN Reference Parameters Optional options: ScrollToOptions Returns void scroll(x, y): void Parameters x: number y: number Returns void scrollBy scrollBy(options?): void MDN Reference Parameters Optional options: ScrollToOptions Returns void scrollBy(x, y): void Parameters x: number y: number Returns void scrollIntoView scrollIntoView(arg?): void MDN Reference Parameters Optional arg: boolean | ScrollIntoViewOptions Returns void scrollTo scrollTo(options?): void MDN Reference Parameters Optional options: ScrollToOptions Returns void scrollTo(x, y): void Parameters x: number y: number Returns void setAttribute setAttribute(qualifiedName, value): void Sets the value of element's first attribute whose qualified name is qualifiedName to value. MDN Reference Parameters qualifiedName: string value: string Returns void 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 namespace: string qualifiedName: string value: string Returns void setAttributeNode setAttributeNode(attr): Attr MDN Reference Parameters attr: Attr Returns Attr setAttributeNodeNS setAttributeNodeNS(attr): Attr MDN Reference Parameters attr: Attr Returns Attr setPointerCapture setPointerCapture(pointerId): void MDN Reference Parameters pointerId: number Returns void start start(): void Returns void Deprecated stop stop(): void Returns void Deprecated 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 qualifiedName: string Optional force: boolean Returns boolean webkitMatchesSelector webkitMatchesSelector(selectors): boolean Parameters selectors: string Returns boolean DeprecatedThis is a legacy alias of matches. MDN Reference Settings Member Visibility Inherited ThemeOSLightDark On This Page ATTRIBUTE_NODE CDATA_SECTION_NODE COMMENT_NODE DOCUMENT_FRAGMENT_NODE DOCUMENT_NODE DOCUMENT_POSITION_CONTAINED_BY DOCUMENT_POSITION_CONTAINS DOCUMENT_POSITION_DISCONNECTED DOCUMENT_POSITION_FOLLOWING DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC DOCUMENT_POSITION_PRECEDING DOCUMENT_TYPE_NODE ELEMENT_NODE ENTITY_NODE ENTITY_REFERENCE_NODE NOTATION_NODE PROCESSING_INSTRUCTION_NODE TEXT_NODE accessKey accessKeyLabel ariaAtomic ariaAutoComplete ariaBusy ariaChecked ariaColCount ariaColIndex ariaColSpan ariaCurrent ariaDisabled ariaExpanded ariaHasPopup ariaHidden ariaInvalid ariaKeyShortcuts ariaLabel ariaLevel ariaLive ariaModal ariaMultiLine ariaMultiSelectable ariaOrientation ariaPlaceholder ariaPosInSet ariaPressed ariaReadOnly ariaRequired ariaRoleDescription ariaRowCount ariaRowIndex ariaRowSpan ariaSelected ariaSetSize ariaSort ariaValueMax ariaValueMin ariaValueNow ariaValueText assignedSlot attributeStyleMap attributes autocapitalize autofocus baseURI behavior bgColor childElementCount childNodes children classList className clientHeight clientLeft clientTop clientWidth contentEditable dataset dir direction draggable enterKeyHint firstChild firstElementChild height hidden hspace id inert innerHTML innerText inputMode isConnected isContentEditable lang lastChild lastElementChild localName loop namespaceURI nextElementSibling nextSibling nodeName nodeType nodeValue nonce offsetHeight offsetLeft offsetParent offsetTop offsetWidth onabort onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput onbeforexrselect onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncopy oncuechange oncut ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onformdata onfullscreenchange onfullscreenerror ongotpointercapture oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onlostpointercapture onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointermove onpointerout onpointerover onpointerup onprogress onratechange onreset onresize onscroll onsecuritypolicyviolation onseeked onseeking onselect onselectionchange onselectstart onslotchange onstalled onsubmit onsuspend ontimeupdate ontoggle ontouchcancel ontouchend ontouchmove ontouchstart ontransitioncancel ontransitionend ontransitionrun ontransitionstart onvolumechange onwaiting onwebkitanimationend onwebkitanimationiteration onwebkitanimationstart onwebkittransitionend onwheel outerHTML outerText ownerDocument parentElement parentNode part prefix previousElementSibling previousSibling role scrollAmount scrollDelay scrollHeight scrollLeft scrollTop scrollWidth shadowRoot slot spellcheck style tabIndex tagName textContent title translate trueSpeed vspace width addEventListener after animate append appendChild attachInternals attachShadow before blur checkVisibility click cloneNode closest compareDocumentPosition computedStyleMap contains dispatchEvent focus getAnimations getAttribute getAttributeNS getAttributeNames getAttributeNode getAttributeNodeNS getBoundingClientRect getClientRects getElementsByClassName getElementsByTagName getElementsByTagNameNS getRootNode hasAttribute hasAttributeNS hasAttributes hasChildNodes hasPointerCapture insertAdjacentElement insertAdjacentHTML insertAdjacentText insertBefore isDefaultNamespace isEqualNode isSameNode lookupNamespaceURI lookupPrefix matches normalize prepend querySelector querySelectorAll releasePointerCapture remove removeAttribute removeAttributeNS removeAttributeNode removeChild removeEventListener replaceChild replaceChildren replaceWith requestFullscreen requestPointerLock scroll scrollBy scrollIntoView scrollTo setAttribute setAttributeNS setAttributeNode setAttributeNodeNS setPointerCapture start stop toggleAttribute webkitMatchesSelector
MDN Reference
Readonly
node is a CDATASection node.
node is a Comment node.
node is a DocumentFragment node.
node is a document.
Set when other is a descendant of node.
Set when other is an ancestor of node.
Set when node and other are not in the same tree.
Set when other is following node.
Set when other is preceding node.
node is a doctype.
node is an element.
node is a ProcessingInstruction node.
node is a Text node.
Returns node's node document's document base URL.
Returns the children.
Returns the child elements.
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
Returns the value of element's class content attribute. Can be set to change it.
Returns the first child.
Returns the first child that is an element, and null otherwise.
Returns the value of element's id content attribute. Can be set to change it.
Returns true if node is connected and false otherwise.
Returns the last child.
Returns the last child that is an element, and null otherwise.
Returns the local name.
Returns the namespace.
Returns the first following sibling that is an element, and null otherwise.
Returns the next sibling.
Returns a string appropriate for the type of node.
Returns the type of node.
Optional
Fires when the user aborts the download.
The event.
An XRSessionEvent of type beforexrselect is dispatched on the DOM overlay element before generating a WebXR selectstart input event if the -Z axis of the input source's targetRaySpace intersects the DOM overlay element at the time the input device's primary action is triggered.
Fires when the object loses the input focus.
The focus event.
Occurs when playback is possible, but would require further buffering.
Fires when the contents of the object or selection have changed.
Fires when the user clicks the left mouse button on the object
The mouse event.
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Fires when the user double-clicks the object.
Fires on the source object continuously during a drag operation.
Fires on the source object when the user releases the mouse at the close of a drag operation.
Fires on the target element when the user drags the object to a valid drop target.
The drag event.
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Fires on the target element continuously while the user drags the object over a valid drop target.
Fires on the source object when the user starts to drag a text selection or selected object.
Occurs when the duration attribute is updated.
Occurs when the media element is reset to its initial state.
Occurs when the end of playback is reached.
The event
Fires when an error occurs during object loading.
Fires when the object receives focus.
Fires when the user presses a key.
The keyboard event
Fires when the user presses an alphanumeric key.
Fires when the user releases a key.
Fires immediately after the browser loads the object.
Occurs when media data is loaded at the current playback position.
Occurs when the duration and dimensions of the media have been determined.
Occurs when Internet Explorer begins looking for media data.
Fires when the user clicks the object with either mouse button.
Fires when the user moves the mouse over the object.
Fires when the user moves the mouse pointer outside the boundaries of the object.
Fires when the user moves the mouse pointer into the object.
Fires when the user releases a mouse button while the mouse is over the object.
Occurs when playback is paused.
Occurs when the play method is requested.
Occurs when the audio or video has started playing.
Occurs to indicate progress while downloading media data.
Occurs when the playback rate is increased or decreased.
Fires when the user resets a form.
Fires when the user repositions the scroll box in the scroll bar on the object.
Occurs when the seek operation ends.
Occurs when the current playback position is moved.
Fires when the current selection changes.
Occurs when the download has stopped.
Occurs if the load operation has been intentionally halted.
Occurs to indicate the current playback position.
Occurs when the volume is changed, or playback is muted or unmuted.
Occurs when playback stops because the next frame of a video resource is not available.
This is a legacy alias of onanimationend.
onanimationend
This is a legacy alias of onanimationiteration.
onanimationiteration
This is a legacy alias of onanimationstart.
onanimationstart
This is a legacy alias of ontransitionend.
ontransitionend
Returns the parent element.
Returns the parent.
Returns the namespace prefix.
Returns the first preceding sibling that is an element, and null otherwise.
Returns the previous sibling.
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
Returns the value of element's slot content attribute. Can be set to change it.
Returns the HTML-uppercased qualified name.
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.
Rest
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Creates a shadow root for element and returns it.
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
Returns a bitmask indicating the position of other relative to node.
Returns true if other is an inclusive descendant of node, and false otherwise.
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 element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Returns the qualified names of all element's attributes. Can contain duplicates.
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.
Returns node's root.
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
Returns true if element has an attribute whose namespace is namespace and local name is localName.
Returns true if element has attributes, and false otherwise.
Returns whether node has children.
Returns whether node and otherNode have the same properties.
Returns true if matching selectors against element's root yields element, and false otherwise.
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Returns the first element that is a descendant of node that matches selectors.
Returns all element descendants of node that match selectors.
Removes node.
Removes element's first attribute whose qualified name is qualifiedName.
Removes element's attribute whose namespace is namespace and local name is localName.
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
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.
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
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.
This is a legacy alias of matches.
matches
Provides methods to manipulate