Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of element, representing external resources. MDN Reference interface HTMLObjectElement { $bindAttributes?: AttributeBindingsMap; $bindItemStart?: RangeBinding; $bindStart?: RangeBinding; $destroyListeners?: any[]; ATTRIBUTE_NODE: 2; CDATA_SECTION_NODE: 4; COMMENT_NODE: 8; DOCUMENT_FRAGMENT_NODE: 11; DOCUMENT_NODE: 9; DOCUMENT_POSITION_CONTAINED_BY: 16; DOCUMENT_POSITION_CONTAINS: 8; DOCUMENT_POSITION_DISCONNECTED: 1; DOCUMENT_POSITION_FOLLOWING: 4; DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32; DOCUMENT_POSITION_PRECEDING: 2; DOCUMENT_TYPE_NODE: 10; ELEMENT_NODE: 1; ENTITY_NODE: 6; ENTITY_REFERENCE_NODE: 5; NOTATION_NODE: 12; PROCESSING_INSTRUCTION_NODE: 7; TEXT_NODE: 3; accessKey: string; accessKeyLabel: string; align: string; archive: string; ariaAtomic: string; ariaAutoComplete: string; ariaBusy: string; ariaChecked: string; ariaColCount: string; ariaColIndex: 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; ariaRowSpan: string; ariaSelected: string; ariaSetSize: string; ariaSort: string; ariaValueMax: string; ariaValueMin: string; ariaValueNow: string; ariaValueText: string; assignedSlot: HTMLSlotElement; attributeStyleMap: StylePropertyMap; attributes: NamedNodeMap; autocapitalize: string; autofocus: boolean; baseURI: string; border: string; childElementCount: number; childNodes: NodeListOf<ChildNode>; children: HTMLCollection; classList: DOMTokenList; className: string; clientHeight: number; clientLeft: number; clientTop: number; clientWidth: number; code: string; codeBase: string; codeType: string; contentDocument: Document; contentEditable: string; contentWindow: Window; data: string; dataset: DOMStringMap; declare: boolean; dir: string; draggable: boolean; enterKeyHint: string; firstChild: ChildNode; firstElementChild: Element; form: HTMLFormElement; height: string; hidden: boolean; hspace: number; id: string; inert: boolean; innerHTML: string; innerText: string; inputMode: string; isConnected: boolean; isContentEditable: boolean; lang: string; lastChild: ChildNode; lastElementChild: Element; localName: string; name: 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: Object; onanimationcancel: Object; onanimationend: Object; onanimationiteration: Object; onanimationstart: Object; onauxclick: Object; onbeforeinput: Object; onblur: Object; oncancel: Object; oncanplay: Object; oncanplaythrough: Object; onchange: Object; onclick: Object; onclose: Object; oncontextmenu: Object; oncopy: Object; oncuechange: Object; oncut: Object; ondblclick: Object; ondrag: Object; ondragend: Object; ondragenter: Object; ondragleave: Object; ondragover: Object; ondragstart: Object; ondrop: Object; ondurationchange: Object; onemptied: Object; onended: Object; onerror: OnErrorEventHandlerNonNull; onfocus: Object; onformdata: Object; onfullscreenchange: Object; onfullscreenerror: Object; ongotpointercapture: Object; oninput: Object; oninvalid: Object; onkeydown: Object; onkeypress: Object; onkeyup: Object; onload: Object; onloadeddata: Object; onloadedmetadata: Object; onloadstart: Object; onlostpointercapture: Object; onmousedown: Object; onmouseenter: Object; onmouseleave: Object; onmousemove: Object; onmouseout: Object; onmouseover: Object; onmouseup: Object; onpaste: Object; onpause: Object; onplay: Object; onplaying: Object; onpointercancel: Object; onpointerdown: Object; onpointerenter: Object; onpointerleave: Object; onpointermove: Object; onpointerout: Object; onpointerover: Object; onpointerup: Object; onprogress: Object; onratechange: Object; onreset: Object; onresize: Object; onscroll: Object; onsecuritypolicyviolation: Object; onseeked: Object; onseeking: Object; onselect: Object; onselectionchange: Object; onselectstart: Object; onslotchange: Object; onstalled: Object; onsubmit: Object; onsuspend: Object; ontimeupdate: Object; ontoggle: Object; ontouchcancel?: Object; ontouchend?: Object; ontouchmove?: Object; ontouchstart?: Object; ontransitioncancel: Object; ontransitionend: Object; ontransitionrun: Object; ontransitionstart: Object; onvolumechange: Object; onwaiting: Object; onwebkitanimationend: Object; onwebkitanimationiteration: Object; onwebkitanimationstart: Object; onwebkittransitionend: Object; onwheel: Object; 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; standby: string; style: CSSStyleDeclaration; tabIndex: number; tagName: string; textContent: string; title: string; translate: boolean; type: string; useMap: string; validationMessage: string; validity: ValidityState; vspace: number; width: string; willValidate: 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; checkValidity(): boolean; checkVisibility(options?): boolean; click(): void; cloneNode(deep?): Node; closest<K>(selector): HTMLElementTagNameMap[K]; closest<K>(selector): SVGElementTagNameMap[K]; closest<K>(selector): MathMLElementTagNameMap[K]; closest<E>(selectors): E; compareDocumentPosition(other): number; computedStyleMap(): StylePropertyMapReadOnly; 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<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]>; getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>; getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>; getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>; getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>; getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>; getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>; getRootNode(options?): Node; getSVGDocument(): Document; 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<K>(selectors): MathMLElementTagNameMap[K]; querySelector<K>(selectors): HTMLElementDeprecatedTagNameMap[K]; querySelector<E>(selectors): E; querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>; querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>; querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>; querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[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; reportValidity(): boolean; 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; setCustomValidity(error): void; setPointerCapture(pointerId): void; toggleAttribute(qualifiedName, force?): boolean; webkitMatchesSelector(selectors): boolean; }Hierarchy (view full)HTMLElementHTMLObjectElement IndexProperties$bindAttributes? $bindItemStart? $bindStart? $destroyListeners? 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 align archive 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 border childElementCount childNodes children classList className clientHeight clientLeft clientTop clientWidth code codeBase codeType contentDocument contentEditable contentWindow data dataset declare dir draggable enterKeyHint firstChild firstElementChild form height hidden hspace id inert innerHTML innerText inputMode isConnected isContentEditable lang lastChild lastElementChild localName name namespaceURI nextElementSibling nextSibling nodeName nodeType nodeValue nonce? offsetHeight offsetLeft offsetParent offsetTop offsetWidth onabort onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput 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 scrollHeight scrollLeft scrollTop scrollWidth shadowRoot slot spellcheck standby style tabIndex tagName textContent title translate type useMap validationMessage validity vspace width willValidate MethodsaddEventListener after animate append appendChild attachInternals attachShadow before blur checkValidity checkVisibility click cloneNode closest compareDocumentPosition computedStyleMap contains dispatchEvent focus getAnimations getAttribute getAttributeNS getAttributeNames getAttributeNode getAttributeNodeNS getBoundingClientRect getClientRects getElementsByClassName getElementsByTagName getElementsByTagNameNS getRootNode getSVGDocument 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 reportValidity requestFullscreen requestPointerLock scroll scrollBy scrollIntoView scrollTo setAttribute setAttributeNS setAttributeNode setAttributeNodeNS setCustomValidity setPointerCapture toggleAttribute webkitMatchesSelector PropertiesOptional $bindAttributes$bindAttributes?: AttributeBindingsMapOptional $bindItemStart$bindItemStart?: RangeBindingOptional $bindStart$bindStart?: RangeBindingOptional $destroyListeners$destroyListeners?: any[]Readonly ATTRIBUTE_NODEATTRIBUTE_NODE: 2Readonly CDATA_SECTION_NODECDATA_SECTION_NODE: 4node is a CDATASection node. Readonly COMMENT_NODECOMMENT_NODE: 8node is a Comment node. Readonly DOCUMENT_FRAGMENT_NODEDOCUMENT_FRAGMENT_NODE: 11node is a DocumentFragment node. Readonly DOCUMENT_NODEDOCUMENT_NODE: 9node is a document. Readonly DOCUMENT_POSITION_CONTAINED_BYDOCUMENT_POSITION_CONTAINED_BY: 16Set when other is a descendant of node. Readonly DOCUMENT_POSITION_CONTAINSDOCUMENT_POSITION_CONTAINS: 8Set when other is an ancestor of node. Readonly DOCUMENT_POSITION_DISCONNECTEDDOCUMENT_POSITION_DISCONNECTED: 1Set when node and other are not in the same tree. Readonly DOCUMENT_POSITION_FOLLOWINGDOCUMENT_POSITION_FOLLOWING: 4Set when other is following node. Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFICDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32Readonly DOCUMENT_POSITION_PRECEDINGDOCUMENT_POSITION_PRECEDING: 2Set when other is preceding node. Readonly DOCUMENT_TYPE_NODEDOCUMENT_TYPE_NODE: 10node is a doctype. Readonly ELEMENT_NODEELEMENT_NODE: 1node is an element. Readonly ENTITY_NODEENTITY_NODE: 6Readonly ENTITY_REFERENCE_NODEENTITY_REFERENCE_NODE: 5Readonly NOTATION_NODENOTATION_NODE: 12Readonly PROCESSING_INSTRUCTION_NODEPROCESSING_INSTRUCTION_NODE: 7node is a ProcessingInstruction node. Readonly TEXT_NODETEXT_NODE: 3node is a Text node. accessKeyaccessKey: stringMDN Reference Readonly accessKeyLabelaccessKeyLabel: stringMDN Reference alignalign: stringDeprecatedMDN Reference archivearchive: stringSets or retrieves a character string that can be used to implement your own archive functionality for the object. DeprecatedMDN Reference ariaAtomicariaAtomic: stringMDN Reference ariaAutoCompleteariaAutoComplete: stringMDN Reference ariaBusyariaBusy: stringMDN Reference ariaCheckedariaChecked: stringMDN Reference ariaColCountariaColCount: stringMDN Reference ariaColIndexariaColIndex: stringMDN Reference ariaColSpanariaColSpan: stringMDN Reference ariaCurrentariaCurrent: stringMDN Reference ariaDisabledariaDisabled: stringMDN Reference ariaExpandedariaExpanded: stringMDN Reference ariaHasPopupariaHasPopup: stringMDN Reference ariaHiddenariaHidden: stringMDN Reference ariaInvalidariaInvalid: stringariaKeyShortcutsariaKeyShortcuts: stringMDN Reference ariaLabelariaLabel: stringMDN Reference ariaLevelariaLevel: stringMDN Reference ariaLiveariaLive: stringMDN Reference ariaModalariaModal: stringMDN Reference ariaMultiLineariaMultiLine: stringMDN Reference ariaMultiSelectableariaMultiSelectable: stringMDN Reference ariaOrientationariaOrientation: stringMDN Reference ariaPlaceholderariaPlaceholder: stringMDN Reference ariaPosInSetariaPosInSet: stringMDN Reference ariaPressedariaPressed: stringMDN Reference ariaReadOnlyariaReadOnly: stringMDN Reference ariaRequiredariaRequired: stringMDN Reference ariaRoleDescriptionariaRoleDescription: stringMDN Reference ariaRowCountariaRowCount: stringMDN Reference ariaRowIndexariaRowIndex: stringMDN Reference ariaRowSpanariaRowSpan: stringMDN Reference ariaSelectedariaSelected: stringMDN Reference ariaSetSizeariaSetSize: stringMDN Reference ariaSortariaSort: stringMDN Reference ariaValueMaxariaValueMax: stringMDN Reference ariaValueMinariaValueMin: stringMDN Reference ariaValueNowariaValueNow: stringMDN Reference ariaValueTextariaValueText: stringMDN Reference Readonly assignedSlotassignedSlot: HTMLSlotElementMDN Reference Readonly attributeStyleMapattributeStyleMap: StylePropertyMapReadonly attributesattributes: NamedNodeMapMDN Reference autocapitalizeautocapitalize: stringautofocusautofocus: booleanReadonly baseURIbaseURI: stringReturns node's node document's document base URL. MDN Reference borderborder: stringDeprecatedMDN Reference Readonly childElementCountchildElementCount: numberMDN Reference Readonly childNodeschildNodes: NodeListOf<ChildNode>Returns the children. MDN Reference Readonly childrenchildren: HTMLCollectionReturns the child elements. MDN Reference Readonly classListclassList: DOMTokenListAllows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. MDN Reference classNameclassName: stringReturns the value of element's class content attribute. Can be set to change it. MDN Reference Readonly clientHeightclientHeight: numberMDN Reference Readonly clientLeftclientLeft: numberMDN Reference Readonly clientTopclientTop: numberMDN Reference Readonly clientWidthclientWidth: numberMDN Reference codecode: stringSets or retrieves the URL of the file containing the compiled Java class. DeprecatedMDN Reference codeBasecodeBase: stringSets or retrieves the URL of the component. DeprecatedMDN Reference codeTypecodeType: stringSets or retrieves the Internet media type for the code associated with the object. DeprecatedMDN Reference Readonly contentDocumentcontentDocument: DocumentRetrieves the document object of the page or frame. MDN Reference contentEditablecontentEditable: stringMDN Reference Readonly contentWindowcontentWindow: WindowMDN Reference datadata: stringSets or retrieves the URL that references the data of the object. MDN Reference Readonly datasetdataset: DOMStringMapMDN Reference declaredeclare: booleanDeprecatedMDN Reference dirdir: stringMDN Reference draggabledraggable: booleanMDN Reference enterKeyHintenterKeyHint: stringMDN Reference Readonly firstChildfirstChild: ChildNodeReturns the first child. MDN Reference Readonly firstElementChildfirstElementChild: ElementReturns the first child that is an element, and null otherwise. MDN Reference Readonly formform: HTMLFormElementRetrieves a reference to the form that the object is embedded in. MDN Reference heightheight: stringSets or retrieves the height of the object. MDN Reference hiddenhidden: booleanMDN Reference hspacehspace: numberDeprecatedMDN Reference idid: stringReturns the value of element's id content attribute. Can be set to change it. MDN Reference inertinert: booleanMDN Reference innerHTMLinnerHTML: stringMDN Reference innerTextinnerText: stringMDN Reference inputModeinputMode: stringMDN Reference Readonly isConnectedisConnected: booleanReturns true if node is connected and false otherwise. MDN Reference Readonly isContentEditableisContentEditable: booleanMDN Reference langlang: stringMDN Reference Readonly lastChildlastChild: ChildNodeReturns the last child. MDN Reference Readonly lastElementChildlastElementChild: ElementReturns the last child that is an element, and null otherwise. MDN Reference Readonly localNamelocalName: stringReturns the local name. MDN Reference namename: stringSets or retrieves the name of the object. MDN Reference Readonly namespaceURInamespaceURI: stringReturns the namespace. MDN Reference Readonly nextElementSiblingnextElementSibling: ElementReturns the first following sibling that is an element, and null otherwise. MDN Reference Readonly nextSiblingnextSibling: ChildNodeReturns the next sibling. MDN Reference Readonly nodeNamenodeName: stringReturns a string appropriate for the type of node. MDN Reference Readonly nodeTypenodeType: numberReturns the type of node. MDN Reference nodeValuenodeValue: stringMDN Reference Optional noncenonce?: stringMDN Reference Readonly offsetHeightoffsetHeight: numberMDN Reference Readonly offsetLeftoffsetLeft: numberMDN Reference Readonly offsetParentoffsetParent: ElementMDN Reference Readonly offsetTopoffsetTop: numberMDN Reference Readonly offsetWidthoffsetWidth: numberMDN Reference onabortonabort: ObjectFires when the user aborts the download. Param: evThe event. MDN Reference onanimationcancelonanimationcancel: ObjectMDN Reference onanimationendonanimationend: ObjectMDN Reference onanimationiterationonanimationiteration: ObjectMDN Reference onanimationstartonanimationstart: ObjectMDN Reference onauxclickonauxclick: ObjectMDN Reference onbeforeinputonbeforeinput: ObjectMDN Reference onbluronblur: ObjectFires when the object loses the input focus. Param: evThe focus event. MDN Reference oncanceloncancel: ObjectMDN Reference oncanplayoncanplay: ObjectOccurs when playback is possible, but would require further buffering. Param: evThe event. MDN Reference oncanplaythroughoncanplaythrough: ObjectMDN Reference onchangeonchange: ObjectFires when the contents of the object or selection have changed. Param: evThe event. MDN Reference onclickonclick: ObjectFires when the user clicks the left mouse button on the object Param: evThe mouse event. MDN Reference oncloseonclose: ObjectMDN Reference oncontextmenuoncontextmenu: ObjectFires when the user clicks the right mouse button in the client area, opening the context menu. Param: evThe mouse event. MDN Reference oncopyoncopy: ObjectMDN Reference oncuechangeoncuechange: ObjectMDN Reference oncutoncut: ObjectMDN Reference ondblclickondblclick: ObjectFires when the user double-clicks the object. Param: evThe mouse event. MDN Reference ondragondrag: ObjectFires on the source object continuously during a drag operation. Param: evThe event. MDN Reference ondragendondragend: ObjectFires on the source object when the user releases the mouse at the close of a drag operation. Param: evThe event. MDN Reference ondragenterondragenter: ObjectFires on the target element when the user drags the object to a valid drop target. Param: evThe drag event. MDN Reference ondragleaveondragleave: ObjectFires on the target object when the user moves the mouse out of a valid drop target during a drag operation. Param: evThe drag event. MDN Reference ondragoverondragover: ObjectFires on the target element continuously while the user drags the object over a valid drop target. Param: evThe event. MDN Reference ondragstartondragstart: ObjectFires on the source object when the user starts to drag a text selection or selected object. Param: evThe event. MDN Reference ondropondrop: ObjectMDN Reference ondurationchangeondurationchange: ObjectOccurs when the duration attribute is updated. Param: evThe event. MDN Reference onemptiedonemptied: ObjectOccurs when the media element is reset to its initial state. Param: evThe event. MDN Reference onendedonended: ObjectOccurs when the end of playback is reached. Param: evThe event MDN Reference onerroronerror: OnErrorEventHandlerNonNullFires when an error occurs during object loading. Param: evThe event. MDN Reference onfocusonfocus: ObjectFires when the object receives focus. Param: evThe event. MDN Reference onformdataonformdata: ObjectMDN Reference onfullscreenchangeonfullscreenchange: ObjectMDN Reference onfullscreenerroronfullscreenerror: ObjectMDN Reference ongotpointercaptureongotpointercapture: ObjectMDN Reference oninputoninput: ObjectMDN Reference oninvalidoninvalid: ObjectMDN Reference onkeydownonkeydown: ObjectFires when the user presses a key. Param: evThe keyboard event MDN Reference onkeypressonkeypress: ObjectFires when the user presses an alphanumeric key. Param: evThe event. DeprecatedMDN Reference onkeyuponkeyup: ObjectFires when the user releases a key. Param: evThe keyboard event MDN Reference onloadonload: ObjectFires immediately after the browser loads the object. Param: evThe event. MDN Reference onloadeddataonloadeddata: ObjectOccurs when media data is loaded at the current playback position. Param: evThe event. MDN Reference onloadedmetadataonloadedmetadata: ObjectOccurs when the duration and dimensions of the media have been determined. Param: evThe event. MDN Reference onloadstartonloadstart: ObjectOccurs when Internet Explorer begins looking for media data. Param: evThe event. MDN Reference onlostpointercaptureonlostpointercapture: ObjectMDN Reference onmousedownonmousedown: ObjectFires when the user clicks the object with either mouse button. Param: evThe mouse event. MDN Reference onmouseenteronmouseenter: ObjectMDN Reference onmouseleaveonmouseleave: ObjectMDN Reference onmousemoveonmousemove: ObjectFires when the user moves the mouse over the object. Param: evThe mouse event. MDN Reference onmouseoutonmouseout: ObjectFires when the user moves the mouse pointer outside the boundaries of the object. Param: evThe mouse event. MDN Reference onmouseoveronmouseover: ObjectFires when the user moves the mouse pointer into the object. Param: evThe mouse event. MDN Reference onmouseuponmouseup: ObjectFires when the user releases a mouse button while the mouse is over the object. Param: evThe mouse event. MDN Reference onpasteonpaste: ObjectMDN Reference onpauseonpause: ObjectOccurs when playback is paused. Param: evThe event. MDN Reference onplayonplay: ObjectOccurs when the play method is requested. Param: evThe event. MDN Reference onplayingonplaying: ObjectOccurs when the audio or video has started playing. Param: evThe event. MDN Reference onpointercancelonpointercancel: ObjectMDN Reference onpointerdownonpointerdown: ObjectMDN Reference onpointerenteronpointerenter: ObjectMDN Reference onpointerleaveonpointerleave: ObjectMDN Reference onpointermoveonpointermove: ObjectMDN Reference onpointeroutonpointerout: ObjectMDN Reference onpointeroveronpointerover: ObjectMDN Reference onpointeruponpointerup: ObjectMDN Reference onprogressonprogress: ObjectOccurs to indicate progress while downloading media data. Param: evThe event. MDN Reference onratechangeonratechange: ObjectOccurs when the playback rate is increased or decreased. Param: evThe event. MDN Reference onresetonreset: ObjectFires when the user resets a form. Param: evThe event. MDN Reference onresizeonresize: ObjectMDN Reference onscrollonscroll: ObjectFires when the user repositions the scroll box in the scroll bar on the object. Param: evThe event. MDN Reference onsecuritypolicyviolationonsecuritypolicyviolation: ObjectMDN Reference onseekedonseeked: ObjectOccurs when the seek operation ends. Param: evThe event. MDN Reference onseekingonseeking: ObjectOccurs when the current playback position is moved. Param: evThe event. MDN Reference onselectonselect: ObjectFires when the current selection changes. Param: evThe event. MDN Reference onselectionchangeonselectionchange: ObjectMDN Reference onselectstartonselectstart: ObjectMDN Reference onslotchangeonslotchange: ObjectMDN Reference onstalledonstalled: ObjectOccurs when the download has stopped. Param: evThe event. MDN Reference onsubmitonsubmit: ObjectMDN Reference onsuspendonsuspend: ObjectOccurs if the load operation has been intentionally halted. Param: evThe event. MDN Reference ontimeupdateontimeupdate: ObjectOccurs to indicate the current playback position. Param: evThe event. MDN Reference ontoggleontoggle: ObjectMDN Reference Optional ontouchcancelontouchcancel?: ObjectMDN Reference Optional ontouchendontouchend?: ObjectMDN Reference Optional ontouchmoveontouchmove?: ObjectMDN Reference Optional ontouchstartontouchstart?: ObjectMDN Reference ontransitioncancelontransitioncancel: ObjectMDN Reference ontransitionendontransitionend: ObjectMDN Reference ontransitionrunontransitionrun: ObjectMDN Reference ontransitionstartontransitionstart: ObjectMDN Reference onvolumechangeonvolumechange: ObjectOccurs when the volume is changed, or playback is muted or unmuted. Param: evThe event. MDN Reference onwaitingonwaiting: ObjectOccurs when playback stops because the next frame of a video resource is not available. Param: evThe event. MDN Reference onwebkitanimationendonwebkitanimationend: ObjectDeprecatedThis is a legacy alias of onanimationend. MDN Reference onwebkitanimationiterationonwebkitanimationiteration: ObjectDeprecatedThis is a legacy alias of onanimationiteration. MDN Reference onwebkitanimationstartonwebkitanimationstart: ObjectDeprecatedThis is a legacy alias of onanimationstart. MDN Reference onwebkittransitionendonwebkittransitionend: ObjectDeprecatedThis is a legacy alias of ontransitionend. MDN Reference onwheelonwheel: ObjectMDN Reference outerHTMLouterHTML: stringMDN Reference outerTextouterText: stringMDN Reference Readonly ownerDocumentownerDocument: DocumentReturns the node document. Returns null for documents. MDN Reference Readonly parentElementparentElement: HTMLElementReturns the parent element. MDN Reference Readonly parentNodeparentNode: ParentNodeReturns the parent. MDN Reference Readonly partpart: DOMTokenListMDN Reference Readonly prefixprefix: stringReturns the namespace prefix. MDN Reference Readonly previousElementSiblingpreviousElementSibling: ElementReturns the first preceding sibling that is an element, and null otherwise. MDN Reference Readonly previousSiblingpreviousSibling: ChildNodeReturns the previous sibling. MDN Reference rolerole: stringReadonly scrollHeightscrollHeight: numberMDN Reference scrollLeftscrollLeft: numberMDN Reference scrollTopscrollTop: numberMDN Reference Readonly scrollWidthscrollWidth: numberMDN Reference Readonly shadowRootshadowRoot: ShadowRootReturns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. MDN Reference slotslot: stringReturns the value of element's slot content attribute. Can be set to change it. MDN Reference spellcheckspellcheck: booleanMDN Reference standbystandby: stringSets or retrieves a message to be displayed while an object is loading. DeprecatedMDN Reference Readonly stylestyle: CSSStyleDeclarationMDN Reference tabIndextabIndex: numberMDN Reference Readonly tagNametagName: stringReturns the HTML-uppercased qualified name. MDN Reference textContenttextContent: stringMDN Reference titletitle: stringMDN Reference translatetranslate: booleantypetype: stringSets or retrieves the MIME type of the object. MDN Reference useMapuseMap: stringSets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. MDN Reference Readonly validationMessagevalidationMessage: stringReturns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. MDN Reference Readonly validityvalidity: ValidityStateReturns a ValidityState object that represents the validity states of an element. MDN Reference vspacevspace: numberDeprecatedMDN Reference widthwidth: stringSets or retrieves the width of the object. MDN Reference Readonly willValidatewillValidate: booleanReturns whether an element will successfully validate based on forms validation rules and constraints. MDN Reference MethodsaddEventListeneraddEventListener<K>(type, listener, options?): voidAppends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. MDN Reference Type ParametersK extends keyof HTMLElementEventMapParameterstype: Klistener: ObjectOptional options: boolean | AddEventListenerOptionsReturns voidaddEventListener(type, listener, options?): voidParameterstype: stringlistener: EventListenerOrEventListenerObjectOptional options: boolean | AddEventListenerOptionsReturns voidafterafter(...nodes): voidInserts 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 ParametersRest ...nodes: (string | Node)[]Returns voidanimateanimate(keyframes, options?): AnimationMDN Reference Parameterskeyframes: PropertyIndexedKeyframes | Keyframe[]Optional options: number | KeyframeAnimationOptionsReturns Animationappendappend(...nodes): voidInserts 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 ParametersRest ...nodes: (string | Node)[]Returns voidappendChildappendChild<T>(node): TMDN Reference Type ParametersT extends NodeParametersnode: TReturns TattachInternalsattachInternals(): ElementInternalsMDN Reference Returns ElementInternalsattachShadowattachShadow(init): ShadowRootCreates a shadow root for element and returns it. MDN Reference Parametersinit: ShadowRootInitReturns ShadowRootbeforebefore(...nodes): voidInserts 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 ParametersRest ...nodes: (string | Node)[]Returns voidblurblur(): voidMDN Reference Returns voidcheckValiditycheckValidity(): booleanReturns whether a form will validate when it is submitted, without having to submit it. MDN Reference Returns booleancheckVisibilitycheckVisibility(options?): booleanParametersOptional options: CheckVisibilityOptionsReturns booleanclickclick(): voidMDN Reference Returns voidcloneNodecloneNode(deep?): NodeReturns a copy of node. If deep is true, the copy also includes the node's descendants. MDN Reference ParametersOptional deep: booleanReturns Nodeclosestclosest<K>(selector): HTMLElementTagNameMap[K]Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. MDN Reference Type ParametersK extends keyof HTMLElementTagNameMapParametersselector: KReturns HTMLElementTagNameMap[K]closest<K>(selector): SVGElementTagNameMap[K]Type ParametersK extends keyof SVGElementTagNameMapParametersselector: KReturns SVGElementTagNameMap[K]closest<K>(selector): MathMLElementTagNameMap[K]Type ParametersK extends keyof MathMLElementTagNameMapParametersselector: KReturns MathMLElementTagNameMap[K]closest<E>(selectors): EType ParametersE extends Element = ElementParametersselectors: stringReturns EcompareDocumentPositioncompareDocumentPosition(other): numberReturns a bitmask indicating the position of other relative to node. MDN Reference Parametersother: NodeReturns numbercomputedStyleMapcomputedStyleMap(): StylePropertyMapReadOnlyMDN Reference Returns StylePropertyMapReadOnlycontainscontains(other): booleanReturns true if other is an inclusive descendant of node, and false otherwise. MDN Reference Parametersother: NodeReturns booleandispatchEventdispatchEvent(event): booleanDispatches 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 Parametersevent: EventReturns booleanfocusfocus(options?): voidMDN Reference ParametersOptional options: FocusOptionsReturns voidgetAnimationsgetAnimations(options?): Animation[]MDN Reference ParametersOptional options: GetAnimationsOptionsReturns Animation[]getAttributegetAttribute(qualifiedName): stringReturns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. MDN Reference ParametersqualifiedName: stringReturns stringgetAttributeNSgetAttributeNS(namespace, localName): stringReturns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. MDN Reference Parametersnamespace: stringlocalName: stringReturns stringgetAttributeNamesgetAttributeNames(): string[]Returns the qualified names of all element's attributes. Can contain duplicates. MDN Reference Returns string[]getAttributeNodegetAttributeNode(qualifiedName): AttrMDN Reference ParametersqualifiedName: stringReturns AttrgetAttributeNodeNSgetAttributeNodeNS(namespace, localName): AttrMDN Reference Parametersnamespace: stringlocalName: stringReturns AttrgetBoundingClientRectgetBoundingClientRect(): DOMRectMDN Reference Returns DOMRectgetClientRectsgetClientRects(): DOMRectListMDN Reference Returns DOMRectListgetElementsByClassNamegetElementsByClassName(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 ParametersclassNames: stringReturns HTMLCollectionOf<Element>getElementsByTagNamegetElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>MDN Reference Type ParametersK extends keyof HTMLElementTagNameMapParametersqualifiedName: KReturns HTMLCollectionOf<HTMLElementTagNameMap[K]>getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>Type ParametersK extends keyof SVGElementTagNameMapParametersqualifiedName: KReturns HTMLCollectionOf<SVGElementTagNameMap[K]>getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]>Type ParametersK extends keyof MathMLElementTagNameMapParametersqualifiedName: KReturns HTMLCollectionOf<MathMLElementTagNameMap[K]>getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>Type ParametersK extends keyof HTMLElementDeprecatedTagNameMapParametersqualifiedName: KReturns HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>DeprecatedgetElementsByTagName(qualifiedName): HTMLCollectionOf<Element>ParametersqualifiedName: stringReturns HTMLCollectionOf<Element>getElementsByTagNameNSgetElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>MDN Reference ParametersnamespaceURI: "http://www.w3.org/1999/xhtml"localName: stringReturns HTMLCollectionOf<HTMLElement>getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>ParametersnamespaceURI: "http://www.w3.org/2000/svg"localName: stringReturns HTMLCollectionOf<SVGElement>getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>ParametersnamespaceURI: "http://www.w3.org/1998/Math/MathML"localName: stringReturns HTMLCollectionOf<MathMLElement>getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>Parametersnamespace: stringlocalName: stringReturns HTMLCollectionOf<Element>getRootNodegetRootNode(options?): NodeReturns node's root. MDN Reference ParametersOptional options: GetRootNodeOptionsReturns NodegetSVGDocumentgetSVGDocument(): DocumentMDN Reference Returns DocumenthasAttributehasAttribute(qualifiedName): booleanReturns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. MDN Reference ParametersqualifiedName: stringReturns booleanhasAttributeNShasAttributeNS(namespace, localName): booleanReturns true if element has an attribute whose namespace is namespace and local name is localName. MDN Reference Parametersnamespace: stringlocalName: stringReturns booleanhasAttributeshasAttributes(): booleanReturns true if element has attributes, and false otherwise. MDN Reference Returns booleanhasChildNodeshasChildNodes(): booleanReturns whether node has children. MDN Reference Returns booleanhasPointerCapturehasPointerCapture(pointerId): booleanMDN Reference ParameterspointerId: numberReturns booleaninsertAdjacentElementinsertAdjacentElement(where, element): ElementMDN Reference Parameterswhere: InsertPositionelement: ElementReturns ElementinsertAdjacentHTMLinsertAdjacentHTML(position, text): voidMDN Reference Parametersposition: InsertPositiontext: stringReturns voidinsertAdjacentTextinsertAdjacentText(where, data): voidMDN Reference Parameterswhere: InsertPositiondata: stringReturns voidinsertBeforeinsertBefore<T>(node, child): TMDN Reference Type ParametersT extends NodeParametersnode: Tchild: NodeReturns TisDefaultNamespaceisDefaultNamespace(namespace): booleanMDN Reference Parametersnamespace: stringReturns booleanisEqualNodeisEqualNode(otherNode): booleanReturns whether node and otherNode have the same properties. MDN Reference ParametersotherNode: NodeReturns booleanisSameNodeisSameNode(otherNode): booleanMDN Reference ParametersotherNode: NodeReturns booleanlookupNamespaceURIlookupNamespaceURI(prefix): stringMDN Reference Parametersprefix: stringReturns stringlookupPrefixlookupPrefix(namespace): stringMDN Reference Parametersnamespace: stringReturns stringmatchesmatches(selectors): booleanReturns true if matching selectors against element's root yields element, and false otherwise. MDN Reference Parametersselectors: stringReturns booleannormalizenormalize(): voidRemoves empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. MDN Reference Returns voidprependprepend(...nodes): voidInserts 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 ParametersRest ...nodes: (string | Node)[]Returns voidquerySelectorquerySelector<K>(selectors): HTMLElementTagNameMap[K]Returns the first element that is a descendant of node that matches selectors. MDN Reference Type ParametersK extends keyof HTMLElementTagNameMapParametersselectors: KReturns HTMLElementTagNameMap[K]querySelector<K>(selectors): SVGElementTagNameMap[K]Type ParametersK extends keyof SVGElementTagNameMapParametersselectors: KReturns SVGElementTagNameMap[K]querySelector<K>(selectors): MathMLElementTagNameMap[K]Type ParametersK extends keyof MathMLElementTagNameMapParametersselectors: KReturns MathMLElementTagNameMap[K]querySelector<K>(selectors): HTMLElementDeprecatedTagNameMap[K]Type ParametersK extends keyof HTMLElementDeprecatedTagNameMapParametersselectors: KReturns HTMLElementDeprecatedTagNameMap[K]DeprecatedquerySelector<E>(selectors): EType ParametersE extends Element = ElementParametersselectors: stringReturns EquerySelectorAllquerySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>Returns all element descendants of node that match selectors. MDN Reference Type ParametersK extends keyof HTMLElementTagNameMapParametersselectors: KReturns NodeListOf<HTMLElementTagNameMap[K]>querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>Type ParametersK extends keyof SVGElementTagNameMapParametersselectors: KReturns NodeListOf<SVGElementTagNameMap[K]>querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>Type ParametersK extends keyof MathMLElementTagNameMapParametersselectors: KReturns NodeListOf<MathMLElementTagNameMap[K]>querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>Type ParametersK extends keyof HTMLElementDeprecatedTagNameMapParametersselectors: KReturns NodeListOf<HTMLElementDeprecatedTagNameMap[K]>DeprecatedquerySelectorAll<E>(selectors): NodeListOf<E>Type ParametersE extends Element = ElementParametersselectors: stringReturns NodeListOf<E>releasePointerCapturereleasePointerCapture(pointerId): voidMDN Reference ParameterspointerId: numberReturns voidremoveremove(): voidRemoves node. MDN Reference Returns voidremoveAttributeremoveAttribute(qualifiedName): voidRemoves element's first attribute whose qualified name is qualifiedName. MDN Reference ParametersqualifiedName: stringReturns voidremoveAttributeNSremoveAttributeNS(namespace, localName): voidRemoves element's attribute whose namespace is namespace and local name is localName. MDN Reference Parametersnamespace: stringlocalName: stringReturns voidremoveAttributeNoderemoveAttributeNode(attr): AttrMDN Reference Parametersattr: AttrReturns AttrremoveChildremoveChild<T>(child): TMDN Reference Type ParametersT extends NodeParameterschild: TReturns TremoveEventListenerremoveEventListener<K>(type, listener, options?): voidRemoves the event listener in target's event listener list with the same type, callback, and options. MDN Reference Type ParametersK extends keyof HTMLElementEventMapParameterstype: Klistener: ObjectOptional options: boolean | EventListenerOptionsReturns voidremoveEventListener(type, listener, options?): voidParameterstype: stringlistener: EventListenerOrEventListenerObjectOptional options: boolean | EventListenerOptionsReturns voidreplaceChildreplaceChild<T>(node, child): TMDN Reference Type ParametersT extends NodeParametersnode: Nodechild: TReturns TreplaceChildrenreplaceChildren(...nodes): voidReplace 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 ParametersRest ...nodes: (string | Node)[]Returns voidreplaceWithreplaceWith(...nodes): voidReplaces 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 ParametersRest ...nodes: (string | Node)[]Returns voidreportValidityreportValidity(): booleanMDN Reference Returns booleanrequestFullscreenrequestFullscreen(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 ParametersOptional options: FullscreenOptionsReturns Promise<void>requestPointerLockrequestPointerLock(): voidMDN Reference Returns voidscrollscroll(options?): voidMDN Reference ParametersOptional options: ScrollToOptionsReturns voidscroll(x, y): voidParametersx: numbery: numberReturns voidscrollByscrollBy(options?): voidMDN Reference ParametersOptional options: ScrollToOptionsReturns voidscrollBy(x, y): voidParametersx: numbery: numberReturns voidscrollIntoViewscrollIntoView(arg?): voidMDN Reference ParametersOptional arg: boolean | ScrollIntoViewOptionsReturns voidscrollToscrollTo(options?): voidMDN Reference ParametersOptional options: ScrollToOptionsReturns voidscrollTo(x, y): voidParametersx: numbery: numberReturns voidsetAttributesetAttribute(qualifiedName, value): voidSets the value of element's first attribute whose qualified name is qualifiedName to value. MDN Reference ParametersqualifiedName: stringvalue: stringReturns voidsetAttributeNSsetAttributeNS(namespace, qualifiedName, value): voidSets the value of element's attribute whose namespace is namespace and local name is localName to value. MDN Reference Parametersnamespace: stringqualifiedName: stringvalue: stringReturns voidsetAttributeNodesetAttributeNode(attr): AttrMDN Reference Parametersattr: AttrReturns AttrsetAttributeNodeNSsetAttributeNodeNS(attr): AttrMDN Reference Parametersattr: AttrReturns AttrsetCustomValiditysetCustomValidity(error): voidSets a custom error message that is displayed when a form is submitted. Parameterserror: stringSets a custom error message that is displayed when a form is submitted. MDN Reference Returns voidsetPointerCapturesetPointerCapture(pointerId): voidMDN Reference ParameterspointerId: numberReturns voidtoggleAttributetoggleAttribute(qualifiedName, force?): booleanIf 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 ParametersqualifiedName: stringOptional force: booleanReturns booleanwebkitMatchesSelectorwebkitMatchesSelector(selectors): booleanParametersselectors: stringReturns booleanDeprecatedThis is a legacy alias of matches. MDN Reference SettingsMember VisibilityProtectedInheritedExternalThemeOSLightDarkOn This Page$bindAttributes$bindItemStart$bindStart$destroyListenersATTRIBUTE_NODECDATA_SECTION_NODECOMMENT_NODEDOCUMENT_FRAGMENT_NODEDOCUMENT_NODEDOCUMENT_POSITION_CONTAINED_BYDOCUMENT_POSITION_CONTAINSDOCUMENT_POSITION_DISCONNECTEDDOCUMENT_POSITION_FOLLOWINGDOCUMENT_POSITION_IMPLEMENTATION_SPECIFICDOCUMENT_POSITION_PRECEDINGDOCUMENT_TYPE_NODEELEMENT_NODEENTITY_NODEENTITY_REFERENCE_NODENOTATION_NODEPROCESSING_INSTRUCTION_NODETEXT_NODEaccessKeyaccessKeyLabelalignarchiveariaAtomicariaAutoCompleteariaBusyariaCheckedariaColCountariaColIndexariaColSpanariaCurrentariaDisabledariaExpandedariaHasPopupariaHiddenariaInvalidariaKeyShortcutsariaLabelariaLevelariaLiveariaModalariaMultiLineariaMultiSelectableariaOrientationariaPlaceholderariaPosInSetariaPressedariaReadOnlyariaRequiredariaRoleDescriptionariaRowCountariaRowIndexariaRowSpanariaSelectedariaSetSizeariaSortariaValueMaxariaValueMinariaValueNowariaValueTextassignedSlotattributeStyleMapattributesautocapitalizeautofocusbaseURIborderchildElementCountchildNodeschildrenclassListclassNameclientHeightclientLeftclientTopclientWidthcodecodeBasecodeTypecontentDocumentcontentEditablecontentWindowdatadatasetdeclaredirdraggableenterKeyHintfirstChildfirstElementChildformheighthiddenhspaceidinertinnerHTMLinnerTextinputModeisConnectedisContentEditablelanglastChildlastElementChildlocalNamenamenamespaceURInextElementSiblingnextSiblingnodeNamenodeTypenodeValuenonceoffsetHeightoffsetLeftoffsetParentoffsetTopoffsetWidthonabortonanimationcancelonanimationendonanimationiterationonanimationstartonauxclickonbeforeinputonbluroncanceloncanplayoncanplaythroughonchangeonclickoncloseoncontextmenuoncopyoncuechangeoncutondblclickondragondragendondragenterondragleaveondragoverondragstartondropondurationchangeonemptiedonendedonerroronfocusonformdataonfullscreenchangeonfullscreenerrorongotpointercaptureoninputoninvalidonkeydownonkeypressonkeyuponloadonloadeddataonloadedmetadataonloadstartonlostpointercaptureonmousedownonmouseenteronmouseleaveonmousemoveonmouseoutonmouseoveronmouseuponpasteonpauseonplayonplayingonpointercancelonpointerdownonpointerenteronpointerleaveonpointermoveonpointeroutonpointeroveronpointeruponprogressonratechangeonresetonresizeonscrollonsecuritypolicyviolationonseekedonseekingonselectonselectionchangeonselectstartonslotchangeonstalledonsubmitonsuspendontimeupdateontoggleontouchcancelontouchendontouchmoveontouchstartontransitioncancelontransitionendontransitionrunontransitionstartonvolumechangeonwaitingonwebkitanimationendonwebkitanimationiterationonwebkitanimationstartonwebkittransitionendonwheelouterHTMLouterTextownerDocumentparentElementparentNodepartprefixpreviousElementSiblingpreviousSiblingrolescrollHeightscrollLeftscrollTopscrollWidthshadowRootslotspellcheckstandbystyletabIndextagNametextContenttitletranslatetypeuseMapvalidationMessagevalidityvspacewidthwillValidateaddEventListenerafteranimateappendappendChildattachInternalsattachShadowbeforeblurcheckValiditycheckVisibilityclickcloneNodeclosestcompareDocumentPositioncomputedStyleMapcontainsdispatchEventfocusgetAnimationsgetAttributegetAttributeNSgetAttributeNamesgetAttributeNodegetAttributeNodeNSgetBoundingClientRectgetClientRectsgetElementsByClassNamegetElementsByTagNamegetElementsByTagNameNSgetRootNodegetSVGDocumenthasAttributehasAttributeNShasAttributeshasChildNodeshasPointerCaptureinsertAdjacentElementinsertAdjacentHTMLinsertAdjacentTextinsertBeforeisDefaultNamespaceisEqualNodeisSameNodelookupNamespaceURIlookupPrefixmatchesnormalizeprependquerySelectorquerySelectorAllreleasePointerCaptureremoveremoveAttributeremoveAttributeNSremoveAttributeNoderemoveChildremoveEventListenerreplaceChildreplaceChildrenreplaceWithreportValidityrequestFullscreenrequestPointerLockscrollscrollByscrollIntoViewscrollTosetAttributesetAttributeNSsetAttributeNodesetAttributeNodeNSsetCustomValiditysetPointerCapturetoggleAttributewebkitMatchesSelectorderbyLoading...
MDN Reference
Optional
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.
Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
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.
Sets or retrieves the URL of the file containing the compiled Java class.
Sets or retrieves the URL of the component.
Sets or retrieves the Internet media type for the code associated with the object.
Retrieves the document object of the page or frame.
Sets or retrieves the URL that references the data of the object.
Returns the first child.
Returns the first child that is an element, and null otherwise.
Retrieves a reference to the form that the object is embedded in.
Sets or retrieves the height of the object.
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.
Sets or retrieves the name of the object.
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.
Fires when the user aborts the download.
The event.
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 node document. Returns null for documents.
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.
Sets or retrieves a message to be displayed while an object is loading.
Returns the HTML-uppercased qualified name.
Sets or retrieves the MIME type of the object.
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
Returns a ValidityState object that represents the validity states of an element.
Sets or retrieves the width of the object.
Returns whether an element will successfully validate based on forms validation rules and constraints.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
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 whether a form will validate when it is submitted, without having to submit it.
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.
Removes the event listener in target's event listener list with the same type, callback, and options.
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.
Sets a custom error message that is displayed when a form is submitted.
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 special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of