HTMLIFrameElement interface
The HTMLIFrameElement interface provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
- Extends
-
HTMLElement
Properties
| align | |
| allow | The |
| allow |
The |
| class |
The |
| content |
If the iframe and the iframe's parent document are Same Origin, returns a |
| content |
The |
| frame |
|
| height | The |
| loading | The |
| long |
|
| margin |
|
| margin |
|
| moz |
|
| ms |
|
| name | The |
| part | The |
| referrer |
The |
| sandbox | The |
| scrolling | |
| src | The |
| srcdoc | The |
| style | |
| text |
|
| webkit |
|
| width | The |
Inherited Properties
| access |
The |
| access |
The |
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| assigned |
|
| attributes | The |
| attribute |
|
| ATTRIBUTE_NODE | |
| autocapitalize | The |
| autocorrect | The |
| autofocus | |
| baseURI | The read-only |
| CDATA_SECTION_NODE | node is a CDATASection node. |
| child |
|
| child |
The read-only |
| children | Returns the child elements. |
| class |
The |
| client |
The |
| client |
The |
| client |
The |
| client |
The |
| COMMENT_NODE | node is a Comment node. |
| content |
|
| current |
The |
| dataset | |
| dir | The |
| DOCUMENT_FRAGMENT_NODE | node is a DocumentFragment node. |
| DOCUMENT_NODE | node is a document. |
| DOCUMENT_POSITION_CONTAINED_BY | Set when other is a descendant of node. |
| DOCUMENT_POSITION_CONTAINS | Set when other is an ancestor of node. |
| DOCUMENT_POSITION_DISCONNECTED | Set when node and other are not in the same tree. |
| DOCUMENT_POSITION_FOLLOWING | Set when other is following node. |
| DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | |
| DOCUMENT_POSITION_PRECEDING | Set when other is preceding node. |
| DOCUMENT_TYPE_NODE | node is a doctype. |
| draggable | The |
| ELEMENT_NODE | node is an element. |
| enter |
|
| ENTITY_NODE | |
| ENTITY_REFERENCE_NODE | |
| first |
The read-only |
| first |
Returns the first child that is an element, and null otherwise. |
| hidden | The HTMLElement property |
| id | The |
| inert | The HTMLElement property |
| innerHTML | The |
| inner |
The |
| input |
|
| is |
The read-only |
| is |
|
| lang | The |
| last |
The read-only |
| last |
Returns the last child that is an element, and null otherwise. |
| local |
The |
| namespaceURI | The |
| next |
Returns the first following sibling that is an element, and null otherwise. |
| next |
The read-only |
| node |
The read-only |
| node |
The read-only |
| node |
The |
| nonce | |
| NOTATION_NODE | |
| offset |
The |
| offset |
The |
| offset |
The |
| offset |
The |
| offset |
The |
| onabort | |
| onanimationcancel | |
| onanimationend | |
| onanimationiteration | |
| onanimationstart | |
| onauxclick | |
| onbeforeinput | |
| onbeforematch | |
| onbeforetoggle | |
| onblur | |
| oncancel | |
| oncanplay | |
| oncanplaythrough | |
| onchange | |
| onclick | |
| onclose | |
| oncontextlost | |
| oncontextmenu | |
| oncontextrestored | |
| 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 | |
| onpointerrawupdate | Available only in secure contexts. |
| onpointerup | |
| onprogress | |
| onratechange | |
| onreset | |
| onresize | |
| onscroll | |
| onscrollend | |
| 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 | The |
| outer |
The |
| owner |
The read-only |
| parent |
The read-only |
| parent |
The read-only |
| popover | The |
| prefix | The |
| previous |
Returns the first preceding sibling that is an element, and null otherwise. |
| previous |
The read-only |
| PROCESSING_INSTRUCTION_NODE | node is a ProcessingInstruction node. |
| role | |
| scroll |
The |
| scroll |
The |
| scroll |
The |
| scroll |
The |
| shadow |
The |
| slot | The |
| spellcheck | The |
| tab |
|
| tag |
The |
| TEXT_NODE | node is a Text node. |
| title | The |
| translate | The |
| writing |
The |
Methods
| add |
|
| add |
|
| get |
The |
| remove |
|
| remove |
Inherited Methods
| after((string | Node)[]) | 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. |
| animate(Keyframe[] | Property |
|
| append((string | Node)[]) | 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. |
| append |
The |
| attach |
The |
| attach |
The |
| before((string | Node)[]) | 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. |
| blur() | |
| check |
The |
| click() | The |
| clone |
The |
| closest<E>(string) | |
| closest<K>(K) | The |
| closest<K>(K) | |
| closest<K>(K) | |
| compare |
The |
| computed |
The |
| contains(Node | null) | The |
| dispatch |
The |
| focus(Focus |
|
| get |
|
| get |
The |
| get |
The |
| get |
Returns the specified attribute of the specified element, as an Attr node. |
| get |
The |
| get |
The |
| get |
The |
| get |
The |
| get |
The Element method |
| get |
|
| get |
The |
| get |
|
| get |
|
| get |
|
| get |
|
| get |
The |
| get |
|
| get |
|
| getHTML(Get |
The |
| get |
The |
| has |
The |
| has |
The |
| has |
The |
| has |
The |
| has |
The |
| hide |
The |
| insert |
The |
| insert |
The |
| insert |
The |
| insert |
The |
| is |
The |
| is |
The |
| is |
The |
| lookup |
The |
| lookup |
The |
| matches(string) | The |
| normalize() | The |
| prepend((string | Node)[]) | 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. |
| query |
|
| query |
Returns the first element that is a descendant of node that matches selectors. |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
Returns all element descendants of node that match selectors. |
| query |
|
| query |
|
| query |
|
| release |
The |
| remove() | Removes node. |
| remove |
The Element method |
| remove |
The |
| remove |
The |
| remove |
The |
| replace |
The |
| replace |
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. |
| replace |
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. |
| request |
The |
| request |
The |
| scroll(number, number) | |
| scroll(Scroll |
The |
| scroll |
|
| scroll |
The |
| scroll |
The Element interface's |
| scroll |
|
| scroll |
The |
| set |
The |
| set |
The |
| set |
The |
| set |
|
| set |
The |
| set |
The |
| show |
The |
| toggle |
The |
| toggle |
The |
| webkit |
Property Details
align
Warning
This API is now deprecated.
align: string
Property Value
string
allow
The allow property of the HTMLIFrameElement interface indicates the Permissions Policy specified for this <iframe> element.
allow: string
Property Value
string
allowFullscreen
The allowFullscreen property of the HTMLIFrameElement interface is a boolean value that reflects the allowfullscreen attribute of the iframe element, indicating whether to allow the iframe's contents to use Element.requestFullscreen.
allowFullscreen: boolean
Property Value
boolean
classList
The Element.classList is a read-only property that returns a live DOMTokenList collection of the class attributes of the element.
DOMTokenList classList
Property Value
DOMTokenList
contentDocument
If the iframe and the iframe's parent document are Same Origin, returns a Document (that is, the active document in the inline frame's nested browsing context), else returns null.
contentDocument: Document | null
Property Value
Document | null
contentWindow
The contentWindow property returns the Window object of an HTMLIFrameElement.
contentWindow: Window | null
Property Value
Window | null
frameBorder
Warning
This API is now deprecated.
frameBorder: string
Property Value
string
height
The height property of the HTMLIFrameElement interface returns a string that reflects the height attribute of the iframe element, indicating the height of the frame in CSS pixels.
height: string
Property Value
string
loading
The loading property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed.
loading: "eager" | "lazy"
Property Value
"eager" | "lazy"
longDesc
Warning
This API is now deprecated.
longDesc: string
Property Value
string
marginHeight
Warning
This API is now deprecated.
marginHeight: string
Property Value
string
marginWidth
Warning
This API is now deprecated.
marginWidth: string
Property Value
string
mozRequestFullScreen
mozRequestFullScreen: Function
Property Value
Function
msRequestFullscreen
msRequestFullscreen: Function
Property Value
Function
name
The name property of the HTMLIFrameElement interface is a string value that reflects the name attribute of the iframe element, indicating the specific name of the <iframe> element.
name: string
Property Value
string
part
The part property of the Element interface represents the part identifier(s) of the element (i.e., set using the part attribute), returned as a DOMTokenList.
DOMTokenList part
Property Value
DOMTokenList
referrerPolicy
The HTMLIFrameElement.referrerPolicy property reflects the HTML referrerpolicy attribute of the resource.
referrerPolicy: ReferrerPolicy
Property Value
ReferrerPolicy
sandbox
The sandbox read-only property of the HTMLIFrameElement interface returns a DOMTokenList indicating extra restrictions on the behavior of the nested content.
DOMTokenList sandbox
Property Value
DOMTokenList
scrolling
Warning
This API is now deprecated.
scrolling: string
Property Value
string
src
The HTMLIFrameElement.src A string that reflects the src HTML attribute, containing the address of the content to be embedded.
src: string
Property Value
string
srcdoc
The srcdoc property of the HTMLIFrameElement specifies the content of the page.
srcdoc: string
Property Value
string
style
textContent
webkitRequestFullscreen
webkitRequestFullscreen: () => void
Property Value
() => void
width
The width property of the HTMLIFrameElement interface returns a string that reflects the width attribute of the iframe element, indicating the width of the frame in CSS pixels.
width: string
Property Value
string
Inherited Property Details
accessKey
The HTMLElement.accessKey property sets the keystroke which a user can press to jump to a given element.
accessKey: string
Property Value
string
Inherited From HTMLElement.accessKey
accessKeyLabel
The HTMLElement.accessKeyLabel read-only property returns a string containing the element's browser-assigned access key (if any); otherwise it returns an empty string.
accessKeyLabel: string
Property Value
string
Inherited From HTMLElement.accessKeyLabel
ariaActiveDescendantElement
ariaActiveDescendantElement: Element | null
Property Value
Element | null
Inherited From HTMLElement.ariaActiveDescendantElement
ariaAtomic
ariaAtomic: string | null
Property Value
string | null
Inherited From HTMLElement.ariaAtomic
ariaAutoComplete
ariaAutoComplete: string | null
Property Value
string | null
Inherited From HTMLElement.ariaAutoComplete
ariaBrailleLabel
ariaBrailleLabel: string | null
Property Value
string | null
Inherited From HTMLElement.ariaBrailleLabel
ariaBrailleRoleDescription
ariaBrailleRoleDescription: string | null
Property Value
string | null
Inherited From HTMLElement.ariaBrailleRoleDescription
ariaBusy
ariaBusy: string | null
Property Value
string | null
Inherited From HTMLElement.ariaBusy
ariaChecked
ariaChecked: string | null
Property Value
string | null
Inherited From HTMLElement.ariaChecked
ariaColCount
ariaColCount: string | null
Property Value
string | null
Inherited From HTMLElement.ariaColCount
ariaColIndex
ariaColIndex: string | null
Property Value
string | null
Inherited From HTMLElement.ariaColIndex
ariaColIndexText
ariaColIndexText: string | null
Property Value
string | null
Inherited From HTMLElement.ariaColIndexText
ariaColSpan
ariaColSpan: string | null
Property Value
string | null
Inherited From HTMLElement.ariaColSpan
ariaControlsElements
ariaControlsElements: (readonly Element[]) | null
Property Value
(readonly Element[]) | null
Inherited From HTMLElement.ariaControlsElements
ariaCurrent
ariaCurrent: string | null
Property Value
string | null
Inherited From HTMLElement.ariaCurrent
ariaDescribedByElements
ariaDescribedByElements: (readonly Element[]) | null
Property Value
(readonly Element[]) | null
Inherited From HTMLElement.ariaDescribedByElements
ariaDescription
ariaDescription: string | null
Property Value
string | null
Inherited From HTMLElement.ariaDescription
ariaDetailsElements
ariaDetailsElements: (readonly Element[]) | null
Property Value
(readonly Element[]) | null
Inherited From HTMLElement.ariaDetailsElements
ariaDisabled
ariaDisabled: string | null
Property Value
string | null
Inherited From HTMLElement.ariaDisabled
ariaErrorMessageElements
ariaErrorMessageElements: (readonly Element[]) | null
Property Value
(readonly Element[]) | null
Inherited From HTMLElement.ariaErrorMessageElements
ariaExpanded
ariaExpanded: string | null
Property Value
string | null
Inherited From HTMLElement.ariaExpanded
ariaFlowToElements
ariaFlowToElements: (readonly Element[]) | null
Property Value
(readonly Element[]) | null
Inherited From HTMLElement.ariaFlowToElements
ariaHasPopup
ariaHasPopup: string | null
Property Value
string | null
Inherited From HTMLElement.ariaHasPopup
ariaHidden
ariaHidden: string | null
Property Value
string | null
Inherited From HTMLElement.ariaHidden
ariaInvalid
ariaInvalid: string | null
Property Value
string | null
Inherited From HTMLElement.ariaInvalid
ariaKeyShortcuts
ariaKeyShortcuts: string | null
Property Value
string | null
Inherited From HTMLElement.ariaKeyShortcuts
ariaLabel
ariaLabel: string | null
Property Value
string | null
Inherited From HTMLElement.ariaLabel
ariaLabelledByElements
ariaLabelledByElements: (readonly Element[]) | null
Property Value
(readonly Element[]) | null
Inherited From HTMLElement.ariaLabelledByElements
ariaLevel
ariaLevel: string | null
Property Value
string | null
Inherited From HTMLElement.ariaLevel
ariaLive
ariaLive: string | null
Property Value
string | null
Inherited From HTMLElement.ariaLive
ariaModal
ariaModal: string | null
Property Value
string | null
Inherited From HTMLElement.ariaModal
ariaMultiLine
ariaMultiLine: string | null
Property Value
string | null
Inherited From HTMLElement.ariaMultiLine
ariaMultiSelectable
ariaMultiSelectable: string | null
Property Value
string | null
Inherited From HTMLElement.ariaMultiSelectable
ariaOrientation
ariaOrientation: string | null
Property Value
string | null
Inherited From HTMLElement.ariaOrientation
ariaOwnsElements
ariaOwnsElements: (readonly Element[]) | null
Property Value
(readonly Element[]) | null
Inherited From HTMLElement.ariaOwnsElements
ariaPlaceholder
ariaPlaceholder: string | null
Property Value
string | null
Inherited From HTMLElement.ariaPlaceholder
ariaPosInSet
ariaPosInSet: string | null
Property Value
string | null
Inherited From HTMLElement.ariaPosInSet
ariaPressed
ariaPressed: string | null
Property Value
string | null
Inherited From HTMLElement.ariaPressed
ariaReadOnly
ariaReadOnly: string | null
Property Value
string | null
Inherited From HTMLElement.ariaReadOnly
ariaRelevant
ariaRelevant: string | null
Property Value
string | null
Inherited From HTMLElement.ariaRelevant
ariaRequired
ariaRequired: string | null
Property Value
string | null
Inherited From HTMLElement.ariaRequired
ariaRoleDescription
ariaRoleDescription: string | null
Property Value
string | null
Inherited From HTMLElement.ariaRoleDescription
ariaRowCount
ariaRowCount: string | null
Property Value
string | null
Inherited From HTMLElement.ariaRowCount
ariaRowIndex
ariaRowIndex: string | null
Property Value
string | null
Inherited From HTMLElement.ariaRowIndex
ariaRowIndexText
ariaRowIndexText: string | null
Property Value
string | null
Inherited From HTMLElement.ariaRowIndexText
ariaRowSpan
ariaRowSpan: string | null
Property Value
string | null
Inherited From HTMLElement.ariaRowSpan
ariaSelected
ariaSelected: string | null
Property Value
string | null
Inherited From HTMLElement.ariaSelected
ariaSetSize
ariaSetSize: string | null
Property Value
string | null
Inherited From HTMLElement.ariaSetSize
ariaSort
ariaSort: string | null
Property Value
string | null
Inherited From HTMLElement.ariaSort
ariaValueMax
ariaValueMax: string | null
Property Value
string | null
Inherited From HTMLElement.ariaValueMax
ariaValueMin
ariaValueMin: string | null
Property Value
string | null
Inherited From HTMLElement.ariaValueMin
ariaValueNow
ariaValueNow: string | null
Property Value
string | null
Inherited From HTMLElement.ariaValueNow
ariaValueText
ariaValueText: string | null
Property Value
string | null
Inherited From HTMLElement.ariaValueText
assignedSlot
assignedSlot: HTMLSlotElement | null
Property Value
HTMLSlotElement | null
Inherited From HTMLElement.assignedSlot
attributes
The Element.attributes property returns a live collection of all attribute nodes registered to the specified node.
attributes: NamedNodeMap
Property Value
NamedNodeMap
Inherited From HTMLElement.attributes
attributeStyleMap
attributeStyleMap: StylePropertyMap
Property Value
StylePropertyMap
Inherited From HTMLElement.attributeStyleMap
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
Property Value
2
Inherited From HTMLElement.ATTRIBUTE_NODE
autocapitalize
The autocapitalize property of the HTMLElement interface represents the element's capitalization behavior for user input.
autocapitalize: string
Property Value
string
Inherited From HTMLElement.autocapitalize
autocorrect
The autocorrect property of the HTMLElement interface controls whether or not autocorrection of editable text is enabled for spelling and/or punctuation errors.
autocorrect: boolean
Property Value
boolean
Inherited From HTMLElement.autocorrect
autofocus
baseURI
The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.
baseURI: string
Property Value
string
Inherited From HTMLElement.baseURI
CDATA_SECTION_NODE
node is a CDATASection node.
CDATA_SECTION_NODE: 4
Property Value
4
Inherited From HTMLElement.CDATA_SECTION_NODE
childElementCount
childElementCount: number
Property Value
number
Inherited From HTMLElement.childElementCount
childNodes
The read-only childNodes property of the Node interface returns a live the first child node is assigned index 0.
childNodes: NodeListOf<ChildNode>
Property Value
NodeListOf<ChildNode>
Inherited From HTMLElement.childNodes
children
Returns the child elements.
children: HTMLCollection
Property Value
HTMLCollection
Inherited From HTMLElement.children
className
The className property of the of the specified element.
className: string
Property Value
string
Inherited From HTMLElement.className
clientHeight
The clientHeight read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels.
clientHeight: number
Property Value
number
Inherited From HTMLElement.clientHeight
clientLeft
The clientLeft read-only property of the Element interface returns the width of the left border of an element in pixels.
clientLeft: number
Property Value
number
Inherited From HTMLElement.clientLeft
clientTop
The clientTop read-only property of the Element interface returns the width of the top border of an element in pixels.
clientTop: number
Property Value
number
Inherited From HTMLElement.clientTop
clientWidth
The clientWidth read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels.
clientWidth: number
Property Value
number
Inherited From HTMLElement.clientWidth
COMMENT_NODE
node is a Comment node.
COMMENT_NODE: 8
Property Value
8
Inherited From HTMLElement.COMMENT_NODE
contentEditable
contentEditable: string
Property Value
string
Inherited From HTMLElement.contentEditable
currentCSSZoom
The currentCSSZoom read-only property of the Element interface provides the 'effective' CSS zoom of an element, taking into account the zoom applied to the element and all its parent elements.
currentCSSZoom: number
Property Value
number
Inherited From HTMLElement.currentCSSZoom
dataset
dir
The HTMLElement.dir property indicates the text writing directionality of the content of the current element.
dir: string
Property Value
string
Inherited From HTMLElement.dir
DOCUMENT_FRAGMENT_NODE
node is a DocumentFragment node.
DOCUMENT_FRAGMENT_NODE: 11
Property Value
11
Inherited From HTMLElement.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
node is a document.
DOCUMENT_NODE: 9
Property Value
9
Inherited From HTMLElement.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
Set when other is a descendant of node.
DOCUMENT_POSITION_CONTAINED_BY: 16
Property Value
16
Inherited From HTMLElement.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
Set when other is an ancestor of node.
DOCUMENT_POSITION_CONTAINS: 8
Property Value
8
Inherited From HTMLElement.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
Set when node and other are not in the same tree.
DOCUMENT_POSITION_DISCONNECTED: 1
Property Value
1
Inherited From HTMLElement.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
Set when other is following node.
DOCUMENT_POSITION_FOLLOWING: 4
Property Value
4
Inherited From HTMLElement.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Property Value
32
Inherited From HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
Set when other is preceding node.
DOCUMENT_POSITION_PRECEDING: 2
Property Value
2
Inherited From HTMLElement.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
node is a doctype.
DOCUMENT_TYPE_NODE: 10
Property Value
10
Inherited From HTMLElement.DOCUMENT_TYPE_NODE
draggable
The draggable property of the HTMLElement interface gets and sets a Boolean primitive indicating if the element is draggable.
draggable: boolean
Property Value
boolean
Inherited From HTMLElement.draggable
ELEMENT_NODE
node is an element.
ELEMENT_NODE: 1
Property Value
1
Inherited From HTMLElement.ELEMENT_NODE
enterKeyHint
ENTITY_NODE
ENTITY_NODE: 6
Property Value
6
Inherited From HTMLElement.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: 5
Property Value
5
Inherited From HTMLElement.ENTITY_REFERENCE_NODE
firstChild
The read-only firstChild property of the Node interface returns the node's first child in the tree, or null if the node has no children.
firstChild: ChildNode | null
Property Value
ChildNode | null
Inherited From HTMLElement.firstChild
firstElementChild
Returns the first child that is an element, and null otherwise.
firstElementChild: Element | null
Property Value
Element | null
Inherited From HTMLElement.firstElementChild
hidden
The HTMLElement property hidden reflects the value of the element's hidden attribute.
hidden: boolean
Property Value
boolean
Inherited From HTMLElement.hidden
id
The id property of the Element interface represents the element's identifier, reflecting the id global attribute.
id: string
Property Value
string
Inherited From HTMLElement.id
inert
The HTMLElement property inert reflects the value of the element's inert attribute.
inert: boolean
Property Value
boolean
Inherited From HTMLElement.inert
innerHTML
The innerHTML property of the Element interface gets or sets the HTML or XML markup contained within the element.
innerHTML: string
Property Value
string
Inherited From HTMLElement.innerHTML
innerText
The innerText property of the HTMLElement interface represents the rendered text content of a node and its descendants.
innerText: string
Property Value
string
Inherited From HTMLElement.innerText
inputMode
isConnected
The read-only isConnected property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.
isConnected: boolean
Property Value
boolean
Inherited From HTMLElement.isConnected
isContentEditable
isContentEditable: boolean
Property Value
boolean
Inherited From HTMLElement.isContentEditable
lang
The lang property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
lang: string
Property Value
string
Inherited From HTMLElement.lang
lastChild
The read-only lastChild property of the Node interface returns the last child of the node, or null if there are no child nodes.
lastChild: ChildNode | null
Property Value
ChildNode | null
Inherited From HTMLElement.lastChild
lastElementChild
Returns the last child that is an element, and null otherwise.
lastElementChild: Element | null
Property Value
Element | null
Inherited From HTMLElement.lastElementChild
localName
The Element.localName read-only property returns the local part of the qualified name of an element.
localName: string
Property Value
string
Inherited From HTMLElement.localName
namespaceURI
The Element.namespaceURI read-only property returns the namespace URI of the element, or null if the element is not in a namespace.
namespaceURI: string | null
Property Value
string | null
Inherited From HTMLElement.namespaceURI
nextElementSibling
Returns the first following sibling that is an element, and null otherwise.
nextElementSibling: Element | null
Property Value
Element | null
Inherited From HTMLElement.nextElementSibling
nextSibling
The read-only nextSibling property of the Node interface returns the node immediately following the specified one in their parent's Node.childNodes, or returns null if the specified node is the last child in the parent element.
nextSibling: ChildNode | null
Property Value
ChildNode | null
Inherited From HTMLElement.nextSibling
nodeName
The read-only nodeName property of Node returns the name of the current node as a string.
nodeName: string
Property Value
string
Inherited From HTMLElement.nodeName
nodeType
The read-only nodeType property of a Node interface is an integer that identifies what the node is.
nodeType: number
Property Value
number
Inherited From HTMLElement.nodeType
nodeValue
The nodeValue property of the Node interface returns or sets the value of the current node.
nodeValue: string | null
Property Value
string | null
Inherited From HTMLElement.nodeValue
nonce
NOTATION_NODE
NOTATION_NODE: 12
Property Value
12
Inherited From HTMLElement.NOTATION_NODE
offsetHeight
The offsetHeight read-only property of the HTMLElement interface returns the height of an element, including vertical padding and borders, as an integer.
offsetHeight: number
Property Value
number
Inherited From HTMLElement.offsetHeight
offsetLeft
The offsetLeft read-only property of the HTMLElement interface returns the number of pixels that the upper left corner of the current element is offset to the left within the HTMLElement.offsetParent node.
offsetLeft: number
Property Value
number
Inherited From HTMLElement.offsetLeft
offsetParent
The HTMLElement.offsetParent read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.
offsetParent: Element | null
Property Value
Element | null
Inherited From HTMLElement.offsetParent
offsetTop
The offsetTop read-only property of the HTMLElement interface returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the closest positioned ancestor element.
offsetTop: number
Property Value
number
Inherited From HTMLElement.offsetTop
offsetWidth
The offsetWidth read-only property of the HTMLElement interface returns the layout width of an element as an integer.
offsetWidth: number
Property Value
number
Inherited From HTMLElement.offsetWidth
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: UIEvent) => any | null
Inherited From HTMLElement.onabort
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Inherited From HTMLElement.onanimationcancel
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Inherited From HTMLElement.onanimationend
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Inherited From HTMLElement.onanimationiteration
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Inherited From HTMLElement.onanimationstart
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onauxclick
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: InputEvent) => any | null
Inherited From HTMLElement.onbeforeinput
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Inherited From HTMLElement.onbeforetoggle
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
Inherited From HTMLElement.onblur
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oncancel
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oncanplay
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oncanplaythrough
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onchange
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onclick
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onclose
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.oncontextmenu
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Inherited From HTMLElement.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oncuechange
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Inherited From HTMLElement.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.ondblclick
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Inherited From HTMLElement.ondrag
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Inherited From HTMLElement.ondragend
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Inherited From HTMLElement.ondragenter
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Inherited From HTMLElement.ondragleave
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Inherited From HTMLElement.ondragover
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Inherited From HTMLElement.ondragstart
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Inherited From HTMLElement.ondrop
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.ondurationchange
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onemptied
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onended
onerror
onerror: OnErrorEventHandler
Property Value
OnErrorEventHandler
Inherited From HTMLElement.onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
Inherited From HTMLElement.onfocus
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Inherited From HTMLElement.onformdata
onfullscreenchange
onfullscreenchange: (this: Element, ev: Event) => any | null
Property Value
(this: Element, ev: Event) => any | null
Inherited From HTMLElement.onfullscreenchange
onfullscreenerror
onfullscreenerror: (this: Element, ev: Event) => any | null
Property Value
(this: Element, ev: Event) => any | null
Inherited From HTMLElement.onfullscreenerror
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.ongotpointercapture
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oninput
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.oninvalid
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Inherited From HTMLElement.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Inherited From HTMLElement.onkeypress
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Inherited From HTMLElement.onkeyup
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onload
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onloadeddata
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onloadedmetadata
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onloadstart
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onlostpointercapture
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.onmousedown
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.onmouseenter
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.onmouseleave
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.onmousemove
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.onmouseout
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.onmouseover
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Inherited From HTMLElement.onmouseup
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Inherited From HTMLElement.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onpause
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onplay
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onplaying
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointercancel
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointerdown
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointerenter
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointerleave
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointermove
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointerout
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointerover
onpointerrawupdate
Available only in secure contexts.
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Inherited From HTMLElement.onpointerup
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Inherited From HTMLElement.onprogress
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onratechange
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onreset
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: UIEvent) => any | null
Inherited From HTMLElement.onresize
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onscroll
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Inherited From HTMLElement.onsecuritypolicyviolation
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onseeked
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onseeking
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onselect
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onselectionchange
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onselectstart
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onslotchange
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onstalled
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Inherited From HTMLElement.onsubmit
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onsuspend
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.ontimeupdate
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Inherited From HTMLElement.ontoggle
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Inherited From HTMLElement.ontouchcancel
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Inherited From HTMLElement.ontouchend
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Inherited From HTMLElement.ontouchmove
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Inherited From HTMLElement.ontouchstart
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Inherited From HTMLElement.ontransitioncancel
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Inherited From HTMLElement.ontransitionend
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Inherited From HTMLElement.ontransitionrun
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Inherited From HTMLElement.ontransitionstart
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onvolumechange
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onwaiting
onwebkitanimationend
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onwebkitanimationiteration
onwebkitanimationstart
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onwebkitanimationstart
onwebkittransitionend
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
Property Value
(this: GlobalEventHandlers, ev: Event) => any | null
Inherited From HTMLElement.onwebkittransitionend
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
Property Value
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
Inherited From HTMLElement.onwheel
outerHTML
The outerHTML attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants.
outerHTML: string
Property Value
string
Inherited From HTMLElement.outerHTML
outerText
The outerText property of the HTMLElement interface returns the same value as HTMLElement.innerText.
outerText: string
Property Value
string
Inherited From HTMLElement.outerText
ownerDocument
The read-only ownerDocument property of the Node interface returns the top-level document object of the node.
ownerDocument: Document
Property Value
Inherited From HTMLElement.ownerDocument
parentElement
The read-only parentElement property of Node interface returns the DOM node's parent Element, or null if the node either has no parent, or its parent isn't a DOM Element.
parentElement: HTMLElement | null
Property Value
HTMLElement | null
Inherited From HTMLElement.parentElement
parentNode
The read-only parentNode property of the Node interface returns the parent of the specified node in the DOM tree.
parentNode: ParentNode | null
Property Value
ParentNode | null
Inherited From HTMLElement.parentNode
popover
The popover property of the HTMLElement interface gets and sets an element's popover state via JavaScript ('auto', 'hint', or 'manual'), and can be used for feature detection.
popover: string | null
Property Value
string | null
Inherited From HTMLElement.popover
prefix
The Element.prefix read-only property returns the namespace prefix of the specified element, or null if no prefix is specified.
prefix: string | null
Property Value
string | null
Inherited From HTMLElement.prefix
previousElementSibling
Returns the first preceding sibling that is an element, and null otherwise.
previousElementSibling: Element | null
Property Value
Element | null
Inherited From HTMLElement.previousElementSibling
previousSibling
The read-only previousSibling property of the Node interface returns the node immediately preceding the specified one in its parent's or null if the specified node is the first in that list.
previousSibling: ChildNode | null
Property Value
ChildNode | null
Inherited From HTMLElement.previousSibling
PROCESSING_INSTRUCTION_NODE
node is a ProcessingInstruction node.
PROCESSING_INSTRUCTION_NODE: 7
Property Value
7
Inherited From HTMLElement.PROCESSING_INSTRUCTION_NODE
role
scrollHeight
The scrollHeight read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow.
scrollHeight: number
Property Value
number
Inherited From HTMLElement.scrollHeight
scrollLeft
The scrollLeft property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge.
scrollLeft: number
Property Value
number
Inherited From HTMLElement.scrollLeft
scrollTop
The scrollTop property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge.
scrollTop: number
Property Value
number
Inherited From HTMLElement.scrollTop
scrollWidth
The scrollWidth read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow.
scrollWidth: number
Property Value
number
Inherited From HTMLElement.scrollWidth
shadowRoot
The Element.shadowRoot read-only property represents the shadow root hosted by the element.
shadowRoot: ShadowRoot | null
Property Value
ShadowRoot | null
Inherited From HTMLElement.shadowRoot
slot
The slot property of the Element interface returns the name of the shadow DOM slot the element is inserted in.
slot: string
Property Value
string
Inherited From HTMLElement.slot
spellcheck
The spellcheck property of the HTMLElement interface represents a boolean value that controls the spell-checking hint.
spellcheck: boolean
Property Value
boolean
Inherited From HTMLElement.spellcheck
tabIndex
tagName
The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: string
Property Value
string
Inherited From HTMLElement.tagName
TEXT_NODE
node is a Text node.
TEXT_NODE: 3
Property Value
3
Inherited From HTMLElement.TEXT_NODE
title
The HTMLElement.title property represents the title of the element: the text usually displayed in a 'tooltip' popup when the mouse is over the node.
title: string
Property Value
string
Inherited From HTMLElement.title
translate
The translate property of the HTMLElement interface indicates whether an element's attribute values and the values of its Text node children are to be translated when the page is localized, or whether to leave them unchanged.
translate: boolean
Property Value
boolean
Inherited From HTMLElement.translate
writingSuggestions
The writingSuggestions property of the HTMLElement interface is a string indicating if browser-provided writing suggestions should be enabled under the scope of the element or not.
writingSuggestions: string
Property Value
string
Inherited From HTMLElement.writingSuggestions
Method Details
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
Parameters
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
addEventListener<K>(K, (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, boolean | AddEventListenerOptions)
function addEventListener<K>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parameters
- type
-
K
- listener
-
(this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
getSVGDocument()
The getSVGDocument() method of the HTMLIFrameElement interface returns the Document object of the embedded SVG.
function getSVGDocument(): Document | null
Returns
Document | null
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
Parameters
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
removeEventListener<K>(K, (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, boolean | EventListenerOptions)
function removeEventListener<K>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parameters
- type
-
K
- listener
-
(this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | EventListenerOptions
Inherited Method Details
after((string | Node)[])
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.
function after(nodes: (string | Node)[])
Parameters
- nodes
-
(string | Node)[]
Inherited From HTMLElement.after
animate(Keyframe[] | PropertyIndexedKeyframes | null, number | KeyframeAnimationOptions)
function animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation
Parameters
- keyframes
-
Keyframe[] | PropertyIndexedKeyframes | null
- options
-
number | KeyframeAnimationOptions
Returns
Animation
Inherited From HTMLElement.animate
append((string | Node)[])
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.
function append(nodes: (string | Node)[])
Parameters
- nodes
-
(string | Node)[]
Inherited From HTMLElement.append
appendChild<T>(T)
The appendChild() method of the Node interface adds a node to the end of the list of children of a specified parent node.
function appendChild<T>(node: T): T
Parameters
- node
-
T
Returns
T
Inherited From HTMLElement.appendChild
attachInternals()
The HTMLElement.attachInternals() method returns an ElementInternals object.
function attachInternals(): ElementInternals
Returns
ElementInternals
Inherited From HTMLElement.attachInternals
attachShadow(ShadowRootInit)
The Element.attachShadow() method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.
function attachShadow(init: ShadowRootInit): ShadowRoot
Parameters
- init
-
ShadowRootInit
Returns
ShadowRoot
Inherited From HTMLElement.attachShadow
before((string | Node)[])
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.
function before(nodes: (string | Node)[])
Parameters
- nodes
-
(string | Node)[]
Inherited From HTMLElement.before
blur()
checkVisibility(CheckVisibilityOptions)
The checkVisibility() method of the Element interface checks whether the element is visible.
function checkVisibility(options?: CheckVisibilityOptions): boolean
Parameters
- options
-
CheckVisibilityOptions
Returns
boolean
Inherited From HTMLElement.checkVisibility
click()
The HTMLElement.click() method simulates a mouse click on an element.
function click()
Inherited From HTMLElement.click
cloneNode(boolean)
The cloneNode() method of the Node interface returns a duplicate of the node on which this method was called.
function cloneNode(subtree?: boolean): Node
Parameters
- subtree
-
boolean
Returns
Node
Inherited From HTMLElement.cloneNode
closest<E>(string)
function closest<E>(selectors: string): E | null
Parameters
- selectors
-
string
Returns
E | null
Inherited From HTMLElement.closest
closest<K>(K)
The closest() method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.
function closest<K>(selector: K): HTMLElementTagNameMap[K] | null
Parameters
- selector
-
K
Returns
HTMLElementTagNameMap[K] | null
Inherited From HTMLElement.closest
closest<K>(K)
function closest<K>(selector: K): SVGElementTagNameMap[K] | null
Parameters
- selector
-
K
Returns
SVGElementTagNameMap[K] | null
Inherited From HTMLElement.closest
closest<K>(K)
function closest<K>(selector: K): MathMLElementTagNameMap[K] | null
Parameters
- selector
-
K
Returns
MathMLElementTagNameMap[K] | null
Inherited From HTMLElement.closest
compareDocumentPosition(Node)
The compareDocumentPosition() method of the Node interface reports the position of its argument node relative to the node on which it is called.
function compareDocumentPosition(other: Node): number
Parameters
- other
-
Node
Returns
number
Inherited From HTMLElement.compareDocumentPosition
computedStyleMap()
The computedStyleMap() method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
function computedStyleMap(): StylePropertyMapReadOnly
Returns
StylePropertyMapReadOnly
Inherited From HTMLElement.computedStyleMap
contains(Node | null)
The contains() method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children's direct children, and so on.
function contains(other: Node | null): boolean
Parameters
- other
-
Node | null
Returns
boolean
Inherited From HTMLElement.contains
dispatchEvent(Event)
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
function dispatchEvent(event: Event): boolean
Parameters
- event
-
Event
Returns
boolean
Inherited From HTMLElement.dispatchEvent
focus(FocusOptions)
function focus(options?: FocusOptions)
Parameters
- options
-
FocusOptions
Inherited From HTMLElement.focus
getAnimations(GetAnimationsOptions)
function getAnimations(options?: GetAnimationsOptions): Animation[]
Parameters
- options
-
GetAnimationsOptions
Returns
Animation[]
Inherited From HTMLElement.getAnimations
getAttribute(string)
The getAttribute() method of the element.
function getAttribute(qualifiedName: string): string | null
Parameters
- qualifiedName
-
string
Returns
string | null
Inherited From HTMLElement.getAttribute
getAttributeNames()
The getAttributeNames() method of the array.
function getAttributeNames(): string[]
Returns
string[]
Inherited From HTMLElement.getAttributeNames
getAttributeNode(string)
Returns the specified attribute of the specified element, as an Attr node.
function getAttributeNode(qualifiedName: string): Attr | null
Parameters
- qualifiedName
-
string
Returns
Attr | null
Inherited From HTMLElement.getAttributeNode
getAttributeNodeNS(string | null, string)
The getAttributeNodeNS() method of the Element interface returns the namespaced Attr node of an element.
function getAttributeNodeNS(namespace: string | null, localName: string): Attr | null
Parameters
- namespace
-
string | null
- localName
-
string
Returns
Attr | null
Inherited From HTMLElement.getAttributeNodeNS
getAttributeNS(string | null, string)
The getAttributeNS() method of the Element interface returns the string value of the attribute with the specified namespace and name.
function getAttributeNS(namespace: string | null, localName: string): string | null
Parameters
- namespace
-
string | null
- localName
-
string
Returns
string | null
Inherited From HTMLElement.getAttributeNS
getBoundingClientRect()
The Element.getBoundingClientRect() method returns a position relative to the viewport.
function getBoundingClientRect(): DOMRect
Returns
DOMRect
Inherited From HTMLElement.getBoundingClientRect
getClientRects()
The getClientRects() method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client.
function getClientRects(): DOMRectList
Returns
DOMRectList
Inherited From HTMLElement.getClientRects
getElementsByClassName(string)
The Element method getElementsByClassName() returns a live specified class name or names.
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
Parameters
- classNames
-
string
Returns
HTMLCollectionOf<Element>
Inherited From HTMLElement.getElementsByClassName
getElementsByTagName(string)
function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>
Parameters
- qualifiedName
-
string
Returns
HTMLCollectionOf<Element>
Inherited From HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
The Element.getElementsByTagName() method returns a live All descendants of the specified element are searched, but not the element itself.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
Parameters
- qualifiedName
-
K
Returns
HTMLCollectionOf<HTMLElementTagNameMap[K]>
Inherited From HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
Parameters
- qualifiedName
-
K
Returns
HTMLCollectionOf<SVGElementTagNameMap[K]>
Inherited From HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
Parameters
- qualifiedName
-
K
Returns
HTMLCollectionOf<MathMLElementTagNameMap[K]>
Inherited From HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
Warning
This API is now deprecated.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Parameters
- qualifiedName
-
K
Returns
HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Inherited From HTMLElement.getElementsByTagName
getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>
Parameters
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- localName
-
string
Returns
HTMLCollectionOf<MathMLElement>
Inherited From HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
The Element.getElementsByTagNameNS() method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace.
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
Parameters
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- localName
-
string
Returns
HTMLCollectionOf<HTMLElement>
Inherited From HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>
Parameters
- namespaceURI
-
"http://www.w3.org/2000/svg"
- localName
-
string
Returns
HTMLCollectionOf<SVGElement>
Inherited From HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS(string | null, string)
function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>
Parameters
- namespace
-
string | null
- localName
-
string
Returns
HTMLCollectionOf<Element>
Inherited From HTMLElement.getElementsByTagNameNS
getHTML(GetHTMLOptions)
The getHTML() method of the Element interface is used to serialize an element's DOM to an HTML string.
function getHTML(options?: GetHTMLOptions): string
Parameters
- options
-
GetHTMLOptions
Returns
string
Inherited From HTMLElement.getHTML
getRootNode(GetRootNodeOptions)
The getRootNode() method of the Node interface returns the context object's root, which optionally includes the shadow root if it is available.
function getRootNode(options?: GetRootNodeOptions): Node
Parameters
- options
-
GetRootNodeOptions
Returns
Node
Inherited From HTMLElement.getRootNode
hasAttribute(string)
The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not.
function hasAttribute(qualifiedName: string): boolean
Parameters
- qualifiedName
-
string
Returns
boolean
Inherited From HTMLElement.hasAttribute
hasAttributeNS(string | null, string)
The hasAttributeNS() method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.
function hasAttributeNS(namespace: string | null, localName: string): boolean
Parameters
- namespace
-
string | null
- localName
-
string
Returns
boolean
Inherited From HTMLElement.hasAttributeNS
hasAttributes()
The hasAttributes() method of the Element interface returns a boolean value indicating whether the current element has any attributes or not.
function hasAttributes(): boolean
Returns
boolean
Inherited From HTMLElement.hasAttributes
hasChildNodes()
The hasChildNodes() method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.
function hasChildNodes(): boolean
Returns
boolean
Inherited From HTMLElement.hasChildNodes
hasPointerCapture(number)
The hasPointerCapture() method of the pointer capture for the pointer identified by the given pointer ID.
function hasPointerCapture(pointerId: number): boolean
Parameters
- pointerId
-
number
Returns
boolean
Inherited From HTMLElement.hasPointerCapture
hidePopover()
The hidePopover() method of the HTMLElement interface hides a popover element (i.e., one that has a valid popover attribute) by removing it from the top layer and styling it with display: none.
function hidePopover()
Inherited From HTMLElement.hidePopover
insertAdjacentElement(InsertPosition, Element)
The insertAdjacentElement() method of the relative to the element it is invoked upon.
function insertAdjacentElement(where: InsertPosition, element: Element): Element | null
Parameters
- where
-
InsertPosition
- element
-
Element
Returns
Element | null
Inherited From HTMLElement.insertAdjacentElement
insertAdjacentHTML(InsertPosition, string)
The insertAdjacentHTML() method of the the resulting nodes into the DOM tree at a specified position.
function insertAdjacentHTML(position: InsertPosition, string: string)
Parameters
- position
-
InsertPosition
- string
-
string
Inherited From HTMLElement.insertAdjacentHTML
insertAdjacentText(InsertPosition, string)
The insertAdjacentText() method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from.
function insertAdjacentText(where: InsertPosition, data: string)
Parameters
- where
-
InsertPosition
- data
-
string
Inherited From HTMLElement.insertAdjacentText
insertBefore<T>(T, Node | null)
The insertBefore() method of the Node interface inserts a node before a reference node as a child of a specified parent node.
function insertBefore<T>(node: T, child: Node | null): T
Parameters
- node
-
T
- child
-
Node | null
Returns
T
Inherited From HTMLElement.insertBefore
isDefaultNamespace(string | null)
The isDefaultNamespace() method of the Node interface accepts a namespace URI as an argument.
function isDefaultNamespace(namespace: string | null): boolean
Parameters
- namespace
-
string | null
Returns
boolean
Inherited From HTMLElement.isDefaultNamespace
isEqualNode(Node | null)
The isEqualNode() method of the Node interface tests whether two nodes are equal.
function isEqualNode(otherNode: Node | null): boolean
Parameters
- otherNode
-
Node | null
Returns
boolean
Inherited From HTMLElement.isEqualNode
isSameNode(Node | null)
The isSameNode() method of the Node interface is a legacy alias the for the === strict equality operator.
function isSameNode(otherNode: Node | null): boolean
Parameters
- otherNode
-
Node | null
Returns
boolean
Inherited From HTMLElement.isSameNode
lookupNamespaceURI(string | null)
The lookupNamespaceURI() method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and null if not).
function lookupNamespaceURI(prefix: string | null): string | null
Parameters
- prefix
-
string | null
Returns
string | null
Inherited From HTMLElement.lookupNamespaceURI
lookupPrefix(string | null)
The lookupPrefix() method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and null if not.
function lookupPrefix(namespace: string | null): string | null
Parameters
- namespace
-
string | null
Returns
string | null
Inherited From HTMLElement.lookupPrefix
matches(string)
The matches() method of the Element interface tests whether the element would be selected by the specified CSS selector.
function matches(selectors: string): boolean
Parameters
- selectors
-
string
Returns
boolean
Inherited From HTMLElement.matches
normalize()
The normalize() method of the Node interface puts the specified node and all of its sub-tree into a normalized form.
function normalize()
Inherited From HTMLElement.normalize
prepend((string | Node)[])
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.
function prepend(nodes: (string | Node)[])
Parameters
- nodes
-
(string | Node)[]
Inherited From HTMLElement.prepend
querySelector<E>(string)
function querySelector<E>(selectors: string): E | null
Parameters
- selectors
-
string
Returns
E | null
Inherited From HTMLElement.querySelector
querySelector<K>(K)
Returns the first element that is a descendant of node that matches selectors.
function querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null
Parameters
- selectors
-
K
Returns
HTMLElementTagNameMap[K] | null
Inherited From HTMLElement.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null
Parameters
- selectors
-
K
Returns
SVGElementTagNameMap[K] | null
Inherited From HTMLElement.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null
Parameters
- selectors
-
K
Returns
MathMLElementTagNameMap[K] | null
Inherited From HTMLElement.querySelector
querySelector<K>(K)
Warning
This API is now deprecated.
function querySelector<K>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null
Parameters
- selectors
-
K
Returns
HTMLElementDeprecatedTagNameMap[K] | null
Inherited From HTMLElement.querySelector
querySelectorAll<E>(string)
function querySelectorAll<E>(selectors: string): NodeListOf<E>
Parameters
- selectors
-
string
Returns
NodeListOf<E>
Inherited From HTMLElement.querySelectorAll
querySelectorAll<K>(K)
Returns all element descendants of node that match selectors.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
Parameters
- selectors
-
K
Returns
NodeListOf<HTMLElementTagNameMap[K]>
Inherited From HTMLElement.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
Parameters
- selectors
-
K
Returns
NodeListOf<SVGElementTagNameMap[K]>
Inherited From HTMLElement.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
Parameters
- selectors
-
K
Returns
NodeListOf<MathMLElementTagNameMap[K]>
Inherited From HTMLElement.querySelectorAll
querySelectorAll<K>(K)
Warning
This API is now deprecated.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Parameters
- selectors
-
K
Returns
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Inherited From HTMLElement.querySelectorAll
releasePointerCapture(number)
The releasePointerCapture() method of the previously set for a specific (PointerEvent) pointer.
function releasePointerCapture(pointerId: number)
Parameters
- pointerId
-
number
Inherited From HTMLElement.releasePointerCapture
remove()
removeAttribute(string)
The Element method removeAttribute() removes the attribute with the specified name from the element.
function removeAttribute(qualifiedName: string)
Parameters
- qualifiedName
-
string
Inherited From HTMLElement.removeAttribute
removeAttributeNode(Attr)
The removeAttributeNode() method of the Element interface removes the specified Attr node from the element.
function removeAttributeNode(attr: Attr): Attr
Parameters
- attr
-
Attr
Returns
Attr
Inherited From HTMLElement.removeAttributeNode
removeAttributeNS(string | null, string)
The removeAttributeNS() method of the If you are working with HTML and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead.
function removeAttributeNS(namespace: string | null, localName: string)
Parameters
- namespace
-
string | null
- localName
-
string
Inherited From HTMLElement.removeAttributeNS
removeChild<T>(T)
The removeChild() method of the Node interface removes a child node from the DOM and returns the removed node.
function removeChild<T>(child: T): T
Parameters
- child
-
T
Returns
T
Inherited From HTMLElement.removeChild
replaceChild<T>(Node, T)
The replaceChild() method of the Node interface replaces a child node within the given (parent) node.
function replaceChild<T>(node: Node, child: T): T
Parameters
- node
-
Node
- child
-
T
Returns
T
Inherited From HTMLElement.replaceChild
replaceChildren((string | Node)[])
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.
function replaceChildren(nodes: (string | Node)[])
Parameters
- nodes
-
(string | Node)[]
Inherited From HTMLElement.replaceChildren
replaceWith((string | Node)[])
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.
function replaceWith(nodes: (string | Node)[])
Parameters
- nodes
-
(string | Node)[]
Inherited From HTMLElement.replaceWith
requestFullscreen(FullscreenOptions)
The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in fullscreen mode.
function requestFullscreen(options?: FullscreenOptions): Promise<void>
Parameters
- options
-
FullscreenOptions
Returns
Promise<void>
Inherited From HTMLElement.requestFullscreen
requestPointerLock(PointerLockOptions)
The requestPointerLock() method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.
function requestPointerLock(options?: PointerLockOptions): Promise<void>
Parameters
- options
-
PointerLockOptions
Returns
Promise<void>
Inherited From HTMLElement.requestPointerLock
scroll(number, number)
function scroll(x: number, y: number)
Parameters
- x
-
number
- y
-
number
Inherited From HTMLElement.scroll
scroll(ScrollToOptions)
The scroll() method of the Element interface scrolls the element to a particular set of coordinates inside a given element.
function scroll(options?: ScrollToOptions)
Parameters
- options
-
ScrollToOptions
Inherited From HTMLElement.scroll
scrollBy(number, number)
function scrollBy(x: number, y: number)
Parameters
- x
-
number
- y
-
number
Inherited From HTMLElement.scrollBy
scrollBy(ScrollToOptions)
The scrollBy() method of the Element interface scrolls an element by the given amount.
function scrollBy(options?: ScrollToOptions)
Parameters
- options
-
ScrollToOptions
Inherited From HTMLElement.scrollBy
scrollIntoView(boolean | ScrollIntoViewOptions)
The Element interface's scrollIntoView() method scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
function scrollIntoView(arg?: boolean | ScrollIntoViewOptions)
Parameters
- arg
-
boolean | ScrollIntoViewOptions
Inherited From HTMLElement.scrollIntoView
scrollTo(number, number)
function scrollTo(x: number, y: number)
Parameters
- x
-
number
- y
-
number
Inherited From HTMLElement.scrollTo
scrollTo(ScrollToOptions)
The scrollTo() method of the Element interface scrolls to a particular set of coordinates inside a given element.
function scrollTo(options?: ScrollToOptions)
Parameters
- options
-
ScrollToOptions
Inherited From HTMLElement.scrollTo
setAttribute(string, string)
The setAttribute() method of the Element interface sets the value of an attribute on the specified element.
function setAttribute(qualifiedName: string, value: string)
Parameters
- qualifiedName
-
string
- value
-
string
Inherited From HTMLElement.setAttribute
setAttributeNode(Attr)
The setAttributeNode() method of the Element interface adds a new Attr node to the specified element.
function setAttributeNode(attr: Attr): Attr | null
Parameters
- attr
-
Attr
Returns
Attr | null
Inherited From HTMLElement.setAttributeNode
setAttributeNodeNS(Attr)
The setAttributeNodeNS() method of the Element interface adds a new namespaced Attr node to an element.
function setAttributeNodeNS(attr: Attr): Attr | null
Parameters
- attr
-
Attr
Returns
Attr | null
Inherited From HTMLElement.setAttributeNodeNS
setAttributeNS(string | null, string, string)
setAttributeNS adds a new attribute or changes the value of an attribute with the given namespace and name.
function setAttributeNS(namespace: string | null, qualifiedName: string, value: string)
Parameters
- namespace
-
string | null
- qualifiedName
-
string
- value
-
string
Inherited From HTMLElement.setAttributeNS
setHTMLUnsafe(string)
The setHTMLUnsafe() method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
function setHTMLUnsafe(html: string)
Parameters
- html
-
string
Inherited From HTMLElement.setHTMLUnsafe
setPointerCapture(number)
The setPointerCapture() method of the capture target of future pointer events.
function setPointerCapture(pointerId: number)
Parameters
- pointerId
-
number
Inherited From HTMLElement.setPointerCapture
showPopover()
The showPopover() method of the HTMLElement interface shows a Popover_API element (i.e., one that has a valid popover attribute) by adding it to the top layer.
function showPopover()
Inherited From HTMLElement.showPopover
toggleAttribute(string, boolean)
The toggleAttribute() method of the present and adding it if it is not present) on the given element.
function toggleAttribute(qualifiedName: string, force?: boolean): boolean
Parameters
- qualifiedName
-
string
- force
-
boolean
Returns
boolean
Inherited From HTMLElement.toggleAttribute
togglePopover(boolean)
The togglePopover() method of the HTMLElement interface toggles a Popover_API element (i.e., one that has a valid popover attribute) between the hidden and showing states.
function togglePopover(options?: boolean): boolean
Parameters
- options
-
boolean
Returns
boolean
Inherited From HTMLElement.togglePopover
webkitMatchesSelector(string)
function webkitMatchesSelector(selectors: string): boolean
Parameters
- selectors
-
string
Returns
boolean
Inherited From HTMLElement.webkitMatchesSelector