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

Sets or retrieves how the object is aligned with adjacent text.

allow
allowFullscreen
contentDocument

Retrieves the document object of the page or frame.

contentWindow

Retrieves the object of the specified.

frameBorder

Sets or retrieves whether to display a border for the frame.

height

Sets or retrieves the height of the object.

longDesc

Sets or retrieves a URI to a long description of the object.

marginHeight

Sets or retrieves the top and bottom margin heights before displaying the text in a frame.

marginWidth

Sets or retrieves the left and right margin widths before displaying the text in a frame.

mozRequestFullScreen
msRequestFullscreen
name

Sets or retrieves the frame name.

referrerPolicy
sandbox
scrolling

Sets or retrieves whether the frame can be scrolled.

src

Sets or retrieves a URL to be loaded by the object.

srcdoc

Sets or retrives the content of the page that is to contain.

webkitRequestFullscreen
width

Sets or retrieves the width of the object.

Inherited Properties

accessKey
accessKeyLabel
ariaAtomic
ariaAutoComplete
ariaBusy
ariaChecked
ariaColCount
ariaColIndex
ariaColIndexText
ariaColSpan
ariaCurrent
ariaDisabled
ariaExpanded
ariaHasPopup
ariaHidden
ariaInvalid
ariaKeyShortcuts
ariaLabel
ariaLevel
ariaLive
ariaModal
ariaMultiLine
ariaMultiSelectable
ariaOrientation
ariaPlaceholder
ariaPosInSet
ariaPressed
ariaReadOnly
ariaRequired
ariaRoleDescription
ariaRowCount
ariaRowIndex
ariaRowIndexText
ariaRowSpan
ariaSelected
ariaSetSize
ariaSort
ariaValueMax
ariaValueMin
ariaValueNow
ariaValueText
assignedSlot
attributes
ATTRIBUTE_NODE
autocapitalize
autofocus
baseURI

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

CDATA_SECTION_NODE

node is a CDATASection node.

childElementCount
childNodes

Returns the children.

children

Returns the child elements.

classList

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

className

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

clientHeight
clientLeft
clientTop
clientWidth
COMMENT_NODE

node is a Comment node.

contentEditable
dataset
dir
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
ELEMENT_NODE

node is an element.

enterKeyHint
ENTITY_NODE
ENTITY_REFERENCE_NODE
firstChild

Returns the first child.

firstElementChild

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

hidden
id

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

inert
innerHTML
innerText
inputMode
isConnected

Returns true if node is connected and false otherwise.

isContentEditable
lang
lastChild

Returns the last child.

lastElementChild

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

localName

Returns the local name.

namespaceURI

Returns the namespace.

nextElementSibling

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

nextSibling

Returns the next sibling.

nodeName

Returns a string appropriate for the type of node.

nodeType

Returns the type of node.

nodeValue
nonce
NOTATION_NODE
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
onabort

Fires when the user aborts the download.

onanimationcancel
onanimationend
onanimationiteration
onanimationstart
onauxclick
onbeforeinput
onblur

Fires when the object loses the input focus.

oncancel
oncanplay

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

oncanplaythrough
onchange

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

onclick

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

onclose
oncontextmenu

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

oncopy
oncuechange
oncut
ondblclick

Fires when the user double-clicks the object.

ondrag

Fires on the source object continuously during a drag operation.

ondragend

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

ondragenter

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

ondragleave

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

ondragover

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

ondragstart

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

ondrop
ondurationchange

Occurs when the duration attribute is updated.

onemptied

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

onended

Occurs when the end of playback is reached.

onerror

Fires when an error occurs during object loading.

onfocus

Fires when the object receives focus.

onformdata
onfullscreenchange
onfullscreenerror
ongotpointercapture
oninput
oninvalid
onkeydown

Fires when the user presses a key.

onkeypress

Fires when the user presses an alphanumeric key.

onkeyup

Fires when the user releases a key.

onload

Fires immediately after the browser loads the object.

onloadeddata

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

onloadedmetadata

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

onloadstart

Occurs when Internet Explorer begins looking for media data.

onlostpointercapture
onmousedown

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

onmouseenter
onmouseleave
onmousemove

Fires when the user moves the mouse over the object.

onmouseout

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

onmouseover

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

onmouseup

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

onpaste
onpause

Occurs when playback is paused.

onplay

Occurs when the play method is requested.

onplaying

Occurs when the audio or video has started playing.

onpointercancel
onpointerdown
onpointerenter
onpointerleave
onpointermove
onpointerout
onpointerover
onpointerup
onprogress

Occurs to indicate progress while downloading media data.

onratechange

Occurs when the playback rate is increased or decreased.

onreset

Fires when the user resets a form.

onresize
onscroll

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

onsecuritypolicyviolation
onseeked

Occurs when the seek operation ends.

onseeking

Occurs when the current playback position is moved.

onselect

Fires when the current selection changes.

onselectionchange
onselectstart
onslotchange
onstalled

Occurs when the download has stopped.

onsubmit
onsuspend

Occurs if the load operation has been intentionally halted.

ontimeupdate

Occurs to indicate the current playback position.

ontoggle
ontouchcancel
ontouchend
ontouchmove
ontouchstart
ontransitioncancel
ontransitionend
ontransitionrun
ontransitionstart
onvolumechange

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

onwaiting

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

onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel
outerHTML
outerText
ownerDocument
parentElement

Returns the parent element.

parentNode

Returns the parent.

part
prefix

Returns the namespace prefix.

previousElementSibling

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

previousSibling

Returns the previous sibling.

PROCESSING_INSTRUCTION_NODE

node is a ProcessingInstruction node.

role
scrollHeight
scrollLeft
scrollTop
scrollWidth
shadowRoot

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

slot

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

spellcheck
style
tabIndex
tagName

Returns the HTML-uppercased qualified name.

textContent
TEXT_NODE

node is a Text node.

title
translate

Methods

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
addEventListener<K>(K, (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, boolean | AddEventListenerOptions)
getSVGDocument()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
removeEventListener<K>(K, (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, boolean | EventListenerOptions)

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(null | Keyframe[] | PropertyIndexedKeyframes, number | KeyframeAnimationOptions)
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.

appendChild<T>(T)
attachInternals()
attachShadow(ShadowRootInit)

Creates a shadow root for element and returns it.

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()
click()
cloneNode(boolean)

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

closest<E>(string)
closest<K>(K)

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

closest<K>(K)
compareDocumentPosition(Node)

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

contains(null | Node)

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

dispatchEvent(Event)

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

focus(FocusOptions)
getAnimations(GetAnimationsOptions)
getAttribute(string)

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

getAttributeNames()

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

getAttributeNode(string)
getAttributeNodeNS(null | string, string)
getAttributeNS(null | string, string)

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

getBoundingClientRect()
getClientRects()
getElementsByClassName(string)

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.

getElementsByTagName(string)
getElementsByTagName<K>(K)
getElementsByTagName<K>(K)
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
getElementsByTagNameNS(null | string, string)
getRootNode(GetRootNodeOptions)

Returns node's root.

hasAttribute(string)

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

hasAttributeNS(null | string, string)

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

hasAttributes()

Returns true if element has attributes, and false otherwise.

hasChildNodes()

Returns whether node has children.

hasPointerCapture(number)
insertAdjacentElement(InsertPosition, Element)
insertAdjacentHTML(InsertPosition, string)
insertAdjacentText(InsertPosition, string)
insertBefore<T>(T, null | Node)
isDefaultNamespace(null | string)
isEqualNode(null | Node)

Returns whether node and otherNode have the same properties.

isSameNode(null | Node)
lookupNamespaceURI(null | string)
lookupPrefix(null | string)
matches(string)

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

normalize()

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

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.

querySelector<E>(string)
querySelector<K>(K)

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

querySelector<K>(K)
querySelectorAll<E>(string)
querySelectorAll<K>(K)

Returns all element descendants of node that match selectors.

querySelectorAll<K>(K)
releasePointerCapture(number)
remove()

Removes node.

removeAttribute(string)

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

removeAttributeNode(Attr)
removeAttributeNS(null | string, string)

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

removeChild<T>(T)
replaceChild<T>(Node, T)
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.

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.

requestFullscreen(FullscreenOptions)

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.

requestPointerLock()
scroll(number, number)
scroll(ScrollToOptions)
scrollBy(number, number)
scrollBy(ScrollToOptions)
scrollIntoView(boolean | ScrollIntoViewOptions)
scrollTo(number, number)
scrollTo(ScrollToOptions)
setAttribute(string, string)

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

setAttributeNode(Attr)
setAttributeNodeNS(Attr)
setAttributeNS(null | string, string, string)

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

setPointerCapture(number)
toggleAttribute(string, boolean)

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

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

webkitMatchesSelector(string)

Property Details

align

Warning

This API is now deprecated.

Sets or retrieves how the object is aligned with adjacent text.

align: string

Property Value

string

allow

allow: string

Property Value

string

allowFullscreen

allowFullscreen: boolean

Property Value

boolean

contentDocument

Retrieves the document object of the page or frame.

contentDocument: null | Document

Property Value

null | Document

contentWindow

Retrieves the object of the specified.

contentWindow: null | Window

Property Value

null | Window

frameBorder

Warning

This API is now deprecated.

Sets or retrieves whether to display a border for the frame.

frameBorder: string

Property Value

string

height

Sets or retrieves the height of the object.

height: string

Property Value

string

longDesc

Warning

This API is now deprecated.

Sets or retrieves a URI to a long description of the object.

longDesc: string

Property Value

string

marginHeight

Warning

This API is now deprecated.

Sets or retrieves the top and bottom margin heights before displaying the text in a frame.

marginHeight: string

Property Value

string

marginWidth

Warning

This API is now deprecated.

Sets or retrieves the left and right margin widths before displaying the text in a frame.

marginWidth: string

Property Value

string

mozRequestFullScreen

mozRequestFullScreen: Function

Property Value

Function

msRequestFullscreen

msRequestFullscreen: Function

Property Value

Function

name

Sets or retrieves the frame name.

name: string

Property Value

string

referrerPolicy

referrerPolicy: ReferrerPolicy

Property Value

ReferrerPolicy

sandbox

sandbox: DOMTokenList

Property Value

DOMTokenList

scrolling

Warning

This API is now deprecated.

Sets or retrieves whether the frame can be scrolled.

scrolling: string

Property Value

string

src

Sets or retrieves a URL to be loaded by the object.

src: string

Property Value

string

srcdoc

Sets or retrives the content of the page that is to contain.

srcdoc: string

Property Value

string

webkitRequestFullscreen

webkitRequestFullscreen: () => void

Property Value

() => void

width

Sets or retrieves the width of the object.

width: string

Property Value

string

Inherited Property Details

accessKey

accessKey: string

Property Value

string

Inherited From HTMLElement.accessKey

accessKeyLabel

accessKeyLabel: string

Property Value

string

Inherited From HTMLElement.accessKeyLabel

ariaAtomic

ariaAtomic: null | string

Property Value

null | string

Inherited From HTMLElement.ariaAtomic

ariaAutoComplete

ariaAutoComplete: null | string

Property Value

null | string

Inherited From HTMLElement.ariaAutoComplete

ariaBusy

ariaBusy: null | string

Property Value

null | string

Inherited From HTMLElement.ariaBusy

ariaChecked

ariaChecked: null | string

Property Value

null | string

Inherited From HTMLElement.ariaChecked

ariaColCount

ariaColCount: null | string

Property Value

null | string

Inherited From HTMLElement.ariaColCount

ariaColIndex

ariaColIndex: null | string

Property Value

null | string

Inherited From HTMLElement.ariaColIndex

ariaColIndexText

ariaColIndexText: null | string

Property Value

null | string

Inherited From HTMLElement.ariaColIndexText

ariaColSpan

ariaColSpan: null | string

Property Value

null | string

Inherited From HTMLElement.ariaColSpan

ariaCurrent

ariaCurrent: null | string

Property Value

null | string

Inherited From HTMLElement.ariaCurrent

ariaDisabled

ariaDisabled: null | string

Property Value

null | string

Inherited From HTMLElement.ariaDisabled

ariaExpanded

ariaExpanded: null | string

Property Value

null | string

Inherited From HTMLElement.ariaExpanded

ariaHasPopup

ariaHasPopup: null | string

Property Value

null | string

Inherited From HTMLElement.ariaHasPopup

ariaHidden

ariaHidden: null | string

Property Value

null | string

Inherited From HTMLElement.ariaHidden

ariaInvalid

ariaInvalid: null | string

Property Value

null | string

Inherited From HTMLElement.ariaInvalid

ariaKeyShortcuts

ariaKeyShortcuts: null | string

Property Value

null | string

Inherited From HTMLElement.ariaKeyShortcuts

ariaLabel

ariaLabel: null | string

Property Value

null | string

Inherited From HTMLElement.ariaLabel

ariaLevel

ariaLevel: null | string

Property Value

null | string

Inherited From HTMLElement.ariaLevel

ariaLive

ariaLive: null | string

Property Value

null | string

Inherited From HTMLElement.ariaLive

ariaModal

ariaModal: null | string

Property Value

null | string

Inherited From HTMLElement.ariaModal

ariaMultiLine

ariaMultiLine: null | string

Property Value

null | string

Inherited From HTMLElement.ariaMultiLine

ariaMultiSelectable

ariaMultiSelectable: null | string

Property Value

null | string

Inherited From HTMLElement.ariaMultiSelectable

ariaOrientation

ariaOrientation: null | string

Property Value

null | string

Inherited From HTMLElement.ariaOrientation

ariaPlaceholder

ariaPlaceholder: null | string

Property Value

null | string

Inherited From HTMLElement.ariaPlaceholder

ariaPosInSet

ariaPosInSet: null | string

Property Value

null | string

Inherited From HTMLElement.ariaPosInSet

ariaPressed

ariaPressed: null | string

Property Value

null | string

Inherited From HTMLElement.ariaPressed

ariaReadOnly

ariaReadOnly: null | string

Property Value

null | string

Inherited From HTMLElement.ariaReadOnly

ariaRequired

ariaRequired: null | string

Property Value

null | string

Inherited From HTMLElement.ariaRequired

ariaRoleDescription

ariaRoleDescription: null | string

Property Value

null | string

Inherited From HTMLElement.ariaRoleDescription

ariaRowCount

ariaRowCount: null | string

Property Value

null | string

Inherited From HTMLElement.ariaRowCount

ariaRowIndex

ariaRowIndex: null | string

Property Value

null | string

Inherited From HTMLElement.ariaRowIndex

ariaRowIndexText

ariaRowIndexText: null | string

Property Value

null | string

Inherited From HTMLElement.ariaRowIndexText

ariaRowSpan

ariaRowSpan: null | string

Property Value

null | string

Inherited From HTMLElement.ariaRowSpan

ariaSelected

ariaSelected: null | string

Property Value

null | string

Inherited From HTMLElement.ariaSelected

ariaSetSize

ariaSetSize: null | string

Property Value

null | string

Inherited From HTMLElement.ariaSetSize

ariaSort

ariaSort: null | string

Property Value

null | string

Inherited From HTMLElement.ariaSort

ariaValueMax

ariaValueMax: null | string

Property Value

null | string

Inherited From HTMLElement.ariaValueMax

ariaValueMin

ariaValueMin: null | string

Property Value

null | string

Inherited From HTMLElement.ariaValueMin

ariaValueNow

ariaValueNow: null | string

Property Value

null | string

Inherited From HTMLElement.ariaValueNow

ariaValueText

ariaValueText: null | string

Property Value

null | string

Inherited From HTMLElement.ariaValueText

assignedSlot

assignedSlot: null | HTMLSlotElement

Property Value

null | HTMLSlotElement

Inherited From HTMLElement.assignedSlot

attributes

attributes: NamedNodeMap

Property Value

NamedNodeMap

Inherited From HTMLElement.attributes

ATTRIBUTE_NODE

ATTRIBUTE_NODE: number

Property Value

number

Inherited From HTMLElement.ATTRIBUTE_NODE

autocapitalize

autocapitalize: string

Property Value

string

Inherited From HTMLElement.autocapitalize

autofocus

autofocus: boolean

Property Value

boolean

Inherited From HTMLElement.autofocus

baseURI

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

baseURI: string

Property Value

string

Inherited From HTMLElement.baseURI

CDATA_SECTION_NODE

node is a CDATASection node.

CDATA_SECTION_NODE: number

Property Value

number

Inherited From HTMLElement.CDATA_SECTION_NODE

childElementCount

childElementCount: number

Property Value

number

Inherited From HTMLElement.childElementCount

childNodes

Returns the children.

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

classList

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

classList: DOMTokenList

Property Value

DOMTokenList

Inherited From HTMLElement.classList

className

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

className: string

Property Value

string

Inherited From HTMLElement.className

clientHeight

clientHeight: number

Property Value

number

Inherited From HTMLElement.clientHeight

clientLeft

clientLeft: number

Property Value

number

Inherited From HTMLElement.clientLeft

clientTop

clientTop: number

Property Value

number

Inherited From HTMLElement.clientTop

clientWidth

clientWidth: number

Property Value

number

Inherited From HTMLElement.clientWidth

COMMENT_NODE

node is a Comment node.

COMMENT_NODE: number

Property Value

number

Inherited From HTMLElement.COMMENT_NODE

contentEditable

contentEditable: string

Property Value

string

Inherited From HTMLElement.contentEditable

dataset

dataset: DOMStringMap

Property Value

DOMStringMap

Inherited From HTMLElement.dataset

dir

dir: string

Property Value

string

Inherited From HTMLElement.dir

DOCUMENT_FRAGMENT_NODE

node is a DocumentFragment node.

DOCUMENT_FRAGMENT_NODE: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_FRAGMENT_NODE

DOCUMENT_NODE

node is a document.

DOCUMENT_NODE: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_NODE

DOCUMENT_POSITION_CONTAINED_BY

Set when other is a descendant of node.

DOCUMENT_POSITION_CONTAINED_BY: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_POSITION_CONTAINED_BY

DOCUMENT_POSITION_CONTAINS

Set when other is an ancestor of node.

DOCUMENT_POSITION_CONTAINS: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_POSITION_CONTAINS

DOCUMENT_POSITION_DISCONNECTED

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

DOCUMENT_POSITION_DISCONNECTED: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_POSITION_DISCONNECTED

DOCUMENT_POSITION_FOLLOWING

Set when other is following node.

DOCUMENT_POSITION_FOLLOWING: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_POSITION_FOLLOWING

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_PRECEDING

Set when other is preceding node.

DOCUMENT_POSITION_PRECEDING: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_POSITION_PRECEDING

DOCUMENT_TYPE_NODE

node is a doctype.

DOCUMENT_TYPE_NODE: number

Property Value

number

Inherited From HTMLElement.DOCUMENT_TYPE_NODE

draggable

draggable: boolean

Property Value

boolean

Inherited From HTMLElement.draggable

ELEMENT_NODE

node is an element.

ELEMENT_NODE: number

Property Value

number

Inherited From HTMLElement.ELEMENT_NODE

enterKeyHint

enterKeyHint: string

Property Value

string

Inherited From HTMLElement.enterKeyHint

ENTITY_NODE

ENTITY_NODE: number

Property Value

number

Inherited From HTMLElement.ENTITY_NODE

ENTITY_REFERENCE_NODE

ENTITY_REFERENCE_NODE: number

Property Value

number

Inherited From HTMLElement.ENTITY_REFERENCE_NODE

firstChild

Returns the first child.

firstChild: null | ChildNode

Property Value

null | ChildNode

Inherited From HTMLElement.firstChild

firstElementChild

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

firstElementChild: null | Element

Property Value

null | Element

Inherited From HTMLElement.firstElementChild

hidden

hidden: boolean

Property Value

boolean

Inherited From HTMLElement.hidden

id

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

id: string

Property Value

string

Inherited From HTMLElement.id

inert

inert: boolean

Property Value

boolean

Inherited From HTMLElement.inert

innerHTML

innerHTML: string

Property Value

string

Inherited From HTMLElement.innerHTML

innerText

innerText: string

Property Value

string

Inherited From HTMLElement.innerText

inputMode

inputMode: string

Property Value

string

Inherited From HTMLElement.inputMode

isConnected

Returns true if node is connected and false otherwise.

isConnected: boolean

Property Value

boolean

Inherited From HTMLElement.isConnected

isContentEditable

isContentEditable: boolean

Property Value

boolean

Inherited From HTMLElement.isContentEditable

lang

lang: string

Property Value

string

Inherited From HTMLElement.lang

lastChild

Returns the last child.

lastChild: null | ChildNode

Property Value

null | ChildNode

Inherited From HTMLElement.lastChild

lastElementChild

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

lastElementChild: null | Element

Property Value

null | Element

Inherited From HTMLElement.lastElementChild

localName

Returns the local name.

localName: string

Property Value

string

Inherited From HTMLElement.localName

namespaceURI

Returns the namespace.

namespaceURI: null | string

Property Value

null | string

Inherited From HTMLElement.namespaceURI

nextElementSibling

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

nextElementSibling: null | Element

Property Value

null | Element

Inherited From HTMLElement.nextElementSibling

nextSibling

Returns the next sibling.

nextSibling: null | ChildNode

Property Value

null | ChildNode

Inherited From HTMLElement.nextSibling

nodeName

Returns a string appropriate for the type of node.

nodeName: string

Property Value

string

Inherited From HTMLElement.nodeName

nodeType

Returns the type of node.

nodeType: number

Property Value

number

Inherited From HTMLElement.nodeType

nodeValue

nodeValue: null | string

Property Value

null | string

Inherited From HTMLElement.nodeValue

nonce

nonce?: string

Property Value

string

Inherited From HTMLElement.nonce

NOTATION_NODE

NOTATION_NODE: number

Property Value

number

Inherited From HTMLElement.NOTATION_NODE

offsetHeight

offsetHeight: number

Property Value

number

Inherited From HTMLElement.offsetHeight

offsetLeft

offsetLeft: number

Property Value

number

Inherited From HTMLElement.offsetLeft

offsetParent

offsetParent: null | Element

Property Value

null | Element

Inherited From HTMLElement.offsetParent

offsetTop

offsetTop: number

Property Value

number

Inherited From HTMLElement.offsetTop

offsetWidth

offsetWidth: number

Property Value

number

Inherited From HTMLElement.offsetWidth

onabort

Fires when the user aborts the download.

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

Property Value

null | (this: GlobalEventHandlers, ev: UIEvent) => any

Inherited From HTMLElement.onabort

onanimationcancel

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

Property Value

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited From HTMLElement.onanimationcancel

onanimationend

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

Property Value

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited From HTMLElement.onanimationend

onanimationiteration

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

Property Value

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited From HTMLElement.onanimationiteration

onanimationstart

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

Property Value

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited From HTMLElement.onanimationstart

onauxclick

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onauxclick

onbeforeinput

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

Property Value

null | (this: GlobalEventHandlers, ev: InputEvent) => any

Inherited From HTMLElement.onbeforeinput

onblur

Fires when the object loses the input focus.

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

Property Value

null | (this: GlobalEventHandlers, ev: FocusEvent) => any

Inherited From HTMLElement.onblur

oncancel

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.oncancel

oncanplay

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.oncanplay

oncanplaythrough

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.oncanplaythrough

onchange

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onchange

onclick

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

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onclick

onclose

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onclose

oncontextmenu

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

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.oncontextmenu

oncopy

oncopy: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Property Value

null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Inherited From HTMLElement.oncopy

oncuechange

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.oncuechange

oncut

oncut: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Property Value

null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Inherited From HTMLElement.oncut

ondblclick

Fires when the user double-clicks the object.

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.ondblclick

ondrag

Fires on the source object continuously during a drag operation.

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

Property Value

null | (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited From HTMLElement.ondrag

ondragend

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

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

Property Value

null | (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited From HTMLElement.ondragend

ondragenter

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

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

Property Value

null | (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited From HTMLElement.ondragenter

ondragleave

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

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

Property Value

null | (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited From HTMLElement.ondragleave

ondragover

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

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

Property Value

null | (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited From HTMLElement.ondragover

ondragstart

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

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

Property Value

null | (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited From HTMLElement.ondragstart

ondrop

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

Property Value

null | (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited From HTMLElement.ondrop

ondurationchange

Occurs when the duration attribute is updated.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.ondurationchange

onemptied

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onemptied

onended

Occurs when the end of playback is reached.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onended

onerror

Fires when an error occurs during object loading.

onerror: OnErrorEventHandler

Property Value

OnErrorEventHandler

Inherited From HTMLElement.onerror

onfocus

Fires when the object receives focus.

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

Property Value

null | (this: GlobalEventHandlers, ev: FocusEvent) => any

Inherited From HTMLElement.onfocus

onformdata

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

Property Value

null | (this: GlobalEventHandlers, ev: FormDataEvent) => any

Inherited From HTMLElement.onformdata

onfullscreenchange

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

Property Value

null | (this: Element, ev: Event) => any

Inherited From HTMLElement.onfullscreenchange

onfullscreenerror

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

Property Value

null | (this: Element, ev: Event) => any

Inherited From HTMLElement.onfullscreenerror

ongotpointercapture

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.ongotpointercapture

oninput

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.oninput

oninvalid

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.oninvalid

onkeydown

Fires when the user presses a key.

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

Property Value

null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

Inherited From HTMLElement.onkeydown

onkeypress

Warning

This API is now deprecated.

Fires when the user presses an alphanumeric key.

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

Property Value

null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

Inherited From HTMLElement.onkeypress

onkeyup

Fires when the user releases a key.

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

Property Value

null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

Inherited From HTMLElement.onkeyup

onload

Fires immediately after the browser loads the object.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onload

onloadeddata

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onloadeddata

onloadedmetadata

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onloadedmetadata

onloadstart

Occurs when Internet Explorer begins looking for media data.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onloadstart

onlostpointercapture

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onlostpointercapture

onmousedown

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

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onmousedown

onmouseenter

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onmouseenter

onmouseleave

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onmouseleave

onmousemove

Fires when the user moves the mouse over the object.

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onmousemove

onmouseout

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

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onmouseout

onmouseover

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

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onmouseover

onmouseup

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

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

Property Value

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited From HTMLElement.onmouseup

onpaste

onpaste: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Property Value

null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Inherited From HTMLElement.onpaste

onpause

Occurs when playback is paused.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onpause

onplay

Occurs when the play method is requested.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onplay

onplaying

Occurs when the audio or video has started playing.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onplaying

onpointercancel

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointercancel

onpointerdown

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointerdown

onpointerenter

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointerenter

onpointerleave

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointerleave

onpointermove

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointermove

onpointerout

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointerout

onpointerover

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointerover

onpointerup

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

Property Value

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited From HTMLElement.onpointerup

onprogress

Occurs to indicate progress while downloading media data.

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

Property Value

null | (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any

Inherited From HTMLElement.onprogress

onratechange

Occurs when the playback rate is increased or decreased.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onratechange

onreset

Fires when the user resets a form.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onreset

onresize

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

Property Value

null | (this: GlobalEventHandlers, ev: UIEvent) => any

Inherited From HTMLElement.onresize

onscroll

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onscroll

onsecuritypolicyviolation

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

Property Value

null | (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any

Inherited From HTMLElement.onsecuritypolicyviolation

onseeked

Occurs when the seek operation ends.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onseeked

onseeking

Occurs when the current playback position is moved.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onseeking

onselect

Fires when the current selection changes.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onselect

onselectionchange

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onselectionchange

onselectstart

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onselectstart

onslotchange

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onslotchange

onstalled

Occurs when the download has stopped.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onstalled

onsubmit

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

Property Value

null | (this: GlobalEventHandlers, ev: SubmitEvent) => any

Inherited From HTMLElement.onsubmit

onsuspend

Occurs if the load operation has been intentionally halted.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onsuspend

ontimeupdate

Occurs to indicate the current playback position.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.ontimeupdate

ontoggle

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.ontoggle

ontouchcancel

ontouchcancel?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Property Value

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited From HTMLElement.ontouchcancel

ontouchend

ontouchend?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Property Value

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited From HTMLElement.ontouchend

ontouchmove

ontouchmove?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Property Value

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited From HTMLElement.ontouchmove

ontouchstart

ontouchstart?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Property Value

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited From HTMLElement.ontouchstart

ontransitioncancel

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

Property Value

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited From HTMLElement.ontransitioncancel

ontransitionend

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

Property Value

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited From HTMLElement.ontransitionend

ontransitionrun

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

Property Value

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited From HTMLElement.ontransitionrun

ontransitionstart

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

Property Value

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited From HTMLElement.ontransitionstart

onvolumechange

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onvolumechange

onwaiting

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

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onwaiting

onwebkitanimationend

Warning

This API is now deprecated.

This is a legacy alias of onanimationend.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onwebkitanimationend

onwebkitanimationiteration

Warning

This API is now deprecated.

This is a legacy alias of onanimationiteration.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onwebkitanimationiteration

onwebkitanimationstart

Warning

This API is now deprecated.

This is a legacy alias of onanimationstart.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onwebkitanimationstart

onwebkittransitionend

Warning

This API is now deprecated.

This is a legacy alias of ontransitionend.

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

Property Value

null | (this: GlobalEventHandlers, ev: Event) => any

Inherited From HTMLElement.onwebkittransitionend

onwheel

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

Property Value

null | (this: GlobalEventHandlers, ev: WheelEvent) => any

Inherited From HTMLElement.onwheel

outerHTML

outerHTML: string

Property Value

string

Inherited From HTMLElement.outerHTML

outerText

outerText: string

Property Value

string

Inherited From HTMLElement.outerText

ownerDocument

ownerDocument: Document

Property Value

Document

Inherited From HTMLElement.ownerDocument

parentElement

Returns the parent element.

parentElement: null | HTMLElement

Property Value

null | HTMLElement

Inherited From HTMLElement.parentElement

parentNode

Returns the parent.

parentNode: null | ParentNode

Property Value

null | ParentNode

Inherited From HTMLElement.parentNode

part

part: DOMTokenList

Property Value

DOMTokenList

Inherited From HTMLElement.part

prefix

Returns the namespace prefix.

prefix: null | string

Property Value

null | string

Inherited From HTMLElement.prefix

previousElementSibling

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

previousElementSibling: null | Element

Property Value

null | Element

Inherited From HTMLElement.previousElementSibling

previousSibling

Returns the previous sibling.

previousSibling: null | ChildNode

Property Value

null | ChildNode

Inherited From HTMLElement.previousSibling

PROCESSING_INSTRUCTION_NODE

node is a ProcessingInstruction node.

PROCESSING_INSTRUCTION_NODE: number

Property Value

number

Inherited From HTMLElement.PROCESSING_INSTRUCTION_NODE

role

role: null | string

Property Value

null | string

Inherited From HTMLElement.role

scrollHeight

scrollHeight: number

Property Value

number

Inherited From HTMLElement.scrollHeight

scrollLeft

scrollLeft: number

Property Value

number

Inherited From HTMLElement.scrollLeft

scrollTop

scrollTop: number

Property Value

number

Inherited From HTMLElement.scrollTop

scrollWidth

scrollWidth: number

Property Value

number

Inherited From HTMLElement.scrollWidth

shadowRoot

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

shadowRoot: null | ShadowRoot

Property Value

null | ShadowRoot

Inherited From HTMLElement.shadowRoot

slot

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

slot: string

Property Value

string

Inherited From HTMLElement.slot

spellcheck

spellcheck: boolean

Property Value

boolean

Inherited From HTMLElement.spellcheck

style

style: CSSStyleDeclaration

Property Value

CSSStyleDeclaration

Inherited From HTMLElement.style

tabIndex

tabIndex: number

Property Value

number

Inherited From HTMLElement.tabIndex

tagName

Returns the HTML-uppercased qualified name.

tagName: string

Property Value

string

Inherited From HTMLElement.tagName

textContent

textContent: null | string

Property Value

null | string

Inherited From HTMLElement.textContent

TEXT_NODE

node is a Text node.

TEXT_NODE: number

Property Value

number

Inherited From HTMLElement.TEXT_NODE

title

title: string

Property Value

string

Inherited From HTMLElement.title

translate

translate: boolean

Property Value

boolean

Inherited From HTMLElement.translate

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()

function getSVGDocument(): null | Document

Returns

null | Document

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(null | Keyframe[] | PropertyIndexedKeyframes, number | KeyframeAnimationOptions)

function animate(keyframes: null | Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation

Parameters

keyframes

null | Keyframe[] | PropertyIndexedKeyframes

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)

function appendChild<T>(node: T): T

Parameters

node

T

Returns

T

Inherited From HTMLElement.appendChild

attachInternals()

function attachInternals(): ElementInternals

Returns

ElementInternals

Inherited From HTMLElement.attachInternals

attachShadow(ShadowRootInit)

Creates a shadow root for element and returns it.

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()

function blur()

Inherited From HTMLElement.blur

click()

function click()

Inherited From HTMLElement.click

cloneNode(boolean)

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

function cloneNode(deep?: boolean): Node

Parameters

deep

boolean

Returns

Node

Inherited From HTMLElement.cloneNode

closest<E>(string)

function closest<E>(selectors: string): null | E

Parameters

selectors

string

Returns

null | E

Inherited From HTMLElement.closest

closest<K>(K)

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

function closest<K>(selector: K): null | HTMLElementTagNameMap[K]

Parameters

selector

K

Returns

null | HTMLElementTagNameMap[K]

Inherited From HTMLElement.closest

closest<K>(K)

function closest<K>(selector: K): null | SVGElementTagNameMap[K]

Parameters

selector

K

Returns

null | SVGElementTagNameMap[K]

Inherited From HTMLElement.closest

compareDocumentPosition(Node)

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

function compareDocumentPosition(other: Node): number

Parameters

other

Node

Returns

number

Inherited From HTMLElement.compareDocumentPosition

contains(null | Node)

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

function contains(other: null | Node): boolean

Parameters

other

null | Node

Returns

boolean

Inherited From HTMLElement.contains

dispatchEvent(Event)

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

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)

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

function getAttribute(qualifiedName: string): null | string

Parameters

qualifiedName

string

Returns

null | string

Inherited From HTMLElement.getAttribute

getAttributeNames()

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

function getAttributeNames(): string[]

Returns

string[]

Inherited From HTMLElement.getAttributeNames

getAttributeNode(string)

function getAttributeNode(qualifiedName: string): null | Attr

Parameters

qualifiedName

string

Returns

null | Attr

Inherited From HTMLElement.getAttributeNode

getAttributeNodeNS(null | string, string)

function getAttributeNodeNS(namespace: null | string, localName: string): null | Attr

Parameters

namespace

null | string

localName

string

Returns

null | Attr

Inherited From HTMLElement.getAttributeNodeNS

getAttributeNS(null | string, string)

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

function getAttributeNS(namespace: null | string, localName: string): null | string

Parameters

namespace

null | string

localName

string

Returns

null | string

Inherited From HTMLElement.getAttributeNS

getBoundingClientRect()

function getBoundingClientRect(): DOMRect

Returns

DOMRect

Inherited From HTMLElement.getBoundingClientRect

getClientRects()

function getClientRects(): DOMRectList

Returns

DOMRectList

Inherited From HTMLElement.getClientRects

getElementsByClassName(string)

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.

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)

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

getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)

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(null | string, string)

function getElementsByTagNameNS(namespace: null | string, localName: string): HTMLCollectionOf<Element>

Parameters

namespace

null | string

localName

string

Returns

HTMLCollectionOf<Element>

Inherited From HTMLElement.getElementsByTagNameNS

getRootNode(GetRootNodeOptions)

Returns node's root.

function getRootNode(options?: GetRootNodeOptions): Node

Parameters

options

GetRootNodeOptions

Returns

Node

Inherited From HTMLElement.getRootNode

hasAttribute(string)

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

function hasAttribute(qualifiedName: string): boolean

Parameters

qualifiedName

string

Returns

boolean

Inherited From HTMLElement.hasAttribute

hasAttributeNS(null | string, string)

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

function hasAttributeNS(namespace: null | string, localName: string): boolean

Parameters

namespace

null | string

localName

string

Returns

boolean

Inherited From HTMLElement.hasAttributeNS

hasAttributes()

Returns true if element has attributes, and false otherwise.

function hasAttributes(): boolean

Returns

boolean

Inherited From HTMLElement.hasAttributes

hasChildNodes()

Returns whether node has children.

function hasChildNodes(): boolean

Returns

boolean

Inherited From HTMLElement.hasChildNodes

hasPointerCapture(number)

function hasPointerCapture(pointerId: number): boolean

Parameters

pointerId

number

Returns

boolean

Inherited From HTMLElement.hasPointerCapture

insertAdjacentElement(InsertPosition, Element)

function insertAdjacentElement(where: InsertPosition, element: Element): null | Element

Parameters

where

InsertPosition

element

Element

Returns

null | Element

Inherited From HTMLElement.insertAdjacentElement

insertAdjacentHTML(InsertPosition, string)

function insertAdjacentHTML(position: InsertPosition, text: string)

Parameters

position

InsertPosition

text

string

Inherited From HTMLElement.insertAdjacentHTML

insertAdjacentText(InsertPosition, string)

function insertAdjacentText(where: InsertPosition, data: string)

Parameters

where

InsertPosition

data

string

Inherited From HTMLElement.insertAdjacentText

insertBefore<T>(T, null | Node)

function insertBefore<T>(node: T, child: null | Node): T

Parameters

node

T

child

null | Node

Returns

T

Inherited From HTMLElement.insertBefore

isDefaultNamespace(null | string)

function isDefaultNamespace(namespace: null | string): boolean

Parameters

namespace

null | string

Returns

boolean

Inherited From HTMLElement.isDefaultNamespace

isEqualNode(null | Node)

Returns whether node and otherNode have the same properties.

function isEqualNode(otherNode: null | Node): boolean

Parameters

otherNode

null | Node

Returns

boolean

Inherited From HTMLElement.isEqualNode

isSameNode(null | Node)

function isSameNode(otherNode: null | Node): boolean

Parameters

otherNode

null | Node

Returns

boolean

Inherited From HTMLElement.isSameNode

lookupNamespaceURI(null | string)

function lookupNamespaceURI(prefix: null | string): null | string

Parameters

prefix

null | string

Returns

null | string

Inherited From HTMLElement.lookupNamespaceURI

lookupPrefix(null | string)

function lookupPrefix(namespace: null | string): null | string

Parameters

namespace

null | string

Returns

null | string

Inherited From HTMLElement.lookupPrefix

matches(string)

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

function matches(selectors: string): boolean

Parameters

selectors

string

Returns

boolean

Inherited From HTMLElement.matches

normalize()

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

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): null | E

Parameters

selectors

string

Returns

null | E

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): null | HTMLElementTagNameMap[K]

Parameters

selectors

K

Returns

null | HTMLElementTagNameMap[K]

Inherited From HTMLElement.querySelector

querySelector<K>(K)

function querySelector<K>(selectors: K): null | SVGElementTagNameMap[K]

Parameters

selectors

K

Returns

null | SVGElementTagNameMap[K]

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

releasePointerCapture(number)

function releasePointerCapture(pointerId: number)

Parameters

pointerId

number

Inherited From HTMLElement.releasePointerCapture

remove()

Removes node.

function remove()

Inherited From HTMLElement.remove

removeAttribute(string)

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

function removeAttribute(qualifiedName: string)

Parameters

qualifiedName

string

Inherited From HTMLElement.removeAttribute

removeAttributeNode(Attr)

function removeAttributeNode(attr: Attr): Attr

Parameters

attr

Attr

Returns

Attr

Inherited From HTMLElement.removeAttributeNode

removeAttributeNS(null | string, string)

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

function removeAttributeNS(namespace: null | string, localName: string)

Parameters

namespace

null | string

localName

string

Inherited From HTMLElement.removeAttributeNS

removeChild<T>(T)

function removeChild<T>(child: T): T

Parameters

child

T

Returns

T

Inherited From HTMLElement.removeChild

replaceChild<T>(Node, T)

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)

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.

function requestFullscreen(options?: FullscreenOptions): Promise<void>

Parameters

options

FullscreenOptions

Returns

Promise<void>

Inherited From HTMLElement.requestFullscreen

requestPointerLock()

function requestPointerLock()

Inherited From HTMLElement.requestPointerLock

scroll(number, number)

function scroll(x: number, y: number)

Parameters

x

number

y

number

Inherited From HTMLElement.scroll

scroll(ScrollToOptions)

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)

function scrollBy(options?: ScrollToOptions)

Parameters

options

ScrollToOptions

Inherited From HTMLElement.scrollBy

scrollIntoView(boolean | ScrollIntoViewOptions)

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)

function scrollTo(options?: ScrollToOptions)

Parameters

options

ScrollToOptions

Inherited From HTMLElement.scrollTo

setAttribute(string, string)

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

function setAttribute(qualifiedName: string, value: string)

Parameters

qualifiedName

string

value

string

Inherited From HTMLElement.setAttribute

setAttributeNode(Attr)

function setAttributeNode(attr: Attr): null | Attr

Parameters

attr

Attr

Returns

null | Attr

Inherited From HTMLElement.setAttributeNode

setAttributeNodeNS(Attr)

function setAttributeNodeNS(attr: Attr): null | Attr

Parameters

attr

Attr

Returns

null | Attr

Inherited From HTMLElement.setAttributeNodeNS

setAttributeNS(null | string, string, string)

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

function setAttributeNS(namespace: null | string, qualifiedName: string, value: string)

Parameters

namespace

null | string

qualifiedName

string

value

string

Inherited From HTMLElement.setAttributeNS

setPointerCapture(number)

function setPointerCapture(pointerId: number)

Parameters

pointerId

number

Inherited From HTMLElement.setPointerCapture

toggleAttribute(string, boolean)

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

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

function toggleAttribute(qualifiedName: string, force?: boolean): boolean

Parameters

qualifiedName

string

force

boolean

Returns

boolean

Inherited From HTMLElement.toggleAttribute

webkitMatchesSelector(string)

Warning

This API is now deprecated.

This is a legacy alias of matches.

function webkitMatchesSelector(selectors: string): boolean

Parameters

selectors

string

Returns

boolean

Inherited From HTMLElement.webkitMatchesSelector