HTMLHtmlElement

Extends: HTMLElement

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement

new HTMLHtmlElement(document, nodeName, namespaceURI)

Creates an instance of HTMLHtmlElement.

Param Type
document *
nodeName *
namespaceURI *

htmlHtmlElement.dataset

Access to all the custom data attributes (data-*) set.

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset

htmlHtmlElement.nodeName : string

Read only

htmlHtmlElement.localName : string

Read only

htmlHtmlElement.tagName : string

Read only

htmlHtmlElement.nodeType : number

Read only

htmlHtmlElement.namespaceURI : string

Read only

htmlHtmlElement.id : string

htmlHtmlElement.tabIndex : number

htmlHtmlElement.className : string

htmlHtmlElement.attributes : NamedNodeMap

Read only

htmlHtmlElement.style : Style

Read only

htmlHtmlElement.clientLeft : number

Read only

htmlHtmlElement.clientTop : number

Read only

htmlHtmlElement.clientWidth : number

Read only

htmlHtmlElement.clientHeight : number

Read only

htmlHtmlElement.height : string or Number

The height of the element

htmlHtmlElement.width : string or Number

The width of the element

htmlHtmlElement.offsetParent : Element

Read only

htmlHtmlElement.offsetLeft : number

Read only

htmlHtmlElement.offsetTop : number

Read only

htmlHtmlElement.offsetWidth : number

Read only

htmlHtmlElement.offsetHeight : number

Read only

htmlHtmlElement.scrollLeft : number

htmlHtmlElement.scrollTop : number

htmlHtmlElement.scrollWidth : number

Read only

htmlHtmlElement.scrollHeight : number

Read only

htmlHtmlElement.uxpContainer : UXPContainer

Overrides: uxpContainer

Read only

htmlHtmlElement.disabled : boolean

htmlHtmlElement.innerHTML : string

htmlHtmlElement.outerHTML : string

htmlHtmlElement.contentEditable

Read only

htmlHtmlElement.isConnected : boolean

Read only

htmlHtmlElement.parentNode : Node

Read only

htmlHtmlElement.parentElement : Element

Read only

htmlHtmlElement.firstChild : Node

Read only

htmlHtmlElement.lastChild : Node

Read only

htmlHtmlElement.previousSibling : Node

Read only

htmlHtmlElement.nextSibling : Node

Read only

htmlHtmlElement.firstElementChild : Node

Read only

htmlHtmlElement.lastElementChild : Node

Read only

htmlHtmlElement.previousElementSibling : Node

Read only

htmlHtmlElement.nextElementSibling : Node

Read only

htmlHtmlElement.textContent : string

htmlHtmlElement.childNodes : NodeList

Read only

htmlHtmlElement.children : HTMLCollection

Read only

htmlHtmlElement.ownerDocument

Read only

htmlHtmlElement.scrollIntoView()

htmlHtmlElement.scrollIntoViewIfNeeded()

htmlHtmlElement.focus()

htmlHtmlElement.blur()

htmlHtmlElement.getAttribute(name)

Param Type
name string

htmlHtmlElement.setAttribute(name, value)

Param Type
name string
value string

htmlHtmlElement.removeAttribute(name)

Param Type
name string

htmlHtmlElement.hasAttribute(name)

Param Type
name string

htmlHtmlElement.getAttributeNode(name)

Param Type
name string

htmlHtmlElement.setAttributeNode(newAttr)

Param Type
newAttr *

htmlHtmlElement.removeAttributeNode(oldAttr)

Param Type
oldAttr *

htmlHtmlElement.click()

htmlHtmlElement.getElementsByClassName(name)

Param Type
name string

htmlHtmlElement.getElementsByTagName(name)

Param Type
name string

htmlHtmlElement.querySelector(selector)

Param Type
selector string

htmlHtmlElement.querySelectorAll(selector)

Param Type
selector string

htmlHtmlElement.getBoundingClientRect()

htmlHtmlElement.insertAdjacentHTML(position, value)

Param Type
position
value string

htmlHtmlElement.insertAdjacentElement(position, node)

Param Type
position *
node *

htmlHtmlElement.insertAdjacentText(position, text)

Param Type
position *
text *

htmlHtmlElement.hasChildNodes()

htmlHtmlElement.cloneNode(deep)

Param Type
deep boolean

htmlHtmlElement.appendChild(child)

Param Type
child Node

htmlHtmlElement.insertBefore(child, before)

Param Type
child Node
before Node

htmlHtmlElement.replaceChild(newChild, oldChild)

Param Type
newChild Node
oldChild Node

htmlHtmlElement.removeChild(child)

Param Type
child Node

htmlHtmlElement.remove()

htmlHtmlElement.before(...nodes)

Param Type
...nodes Array.<Node>

htmlHtmlElement.after(...nodes)

Param Type
...nodes Array.<Node>

htmlHtmlElement.replaceWith(...nodes)

Param Type
...nodes Array.<Node>

htmlHtmlElement.contains(node)

Param Type
node Node

htmlHtmlElement.addEventListener(eventName, callback, [capture])

Param Type Default
eventName *
callback *
[capture] boolean false

htmlHtmlElement.removeEventListener(eventName, callback, [capture])

Param Type Default
eventName *
callback *
[capture] boolean false

htmlHtmlElement.dispatchEvent(event)

Param Type
event *

results matching ""

    No results matching ""