HTMLBodyElement

Extends: HTMLElement

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

new HTMLBodyElement(document, nodeName, namespaceURI)

Creates an instance of HTMLBodyElement.

Param
Type
document
\*
nodeName
\*
namespaceURI
\*

htmlBodyElement.dataset

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

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

htmlBodyElement.nodeName : string

Read only

htmlBodyElement.localName : string

Read only

htmlBodyElement.tagName : string

Read only

htmlBodyElement.nodeType : number

Read only

htmlBodyElement.namespaceURI : string

Read only

htmlBodyElement.id : string

htmlBodyElement.tabIndex : number

htmlBodyElement.className : string

htmlBodyElement.attributes : NamedNodeMap

Read only

htmlBodyElement.style : Style

Read only

htmlBodyElement.clientLeft : number

Read only

htmlBodyElement.clientTop : number

Read only

htmlBodyElement.clientWidth : number

Read only

htmlBodyElement.clientHeight : number

Read only

htmlBodyElement.height : string | Number

The height of the element

htmlBodyElement.width : string | Number

The width of the element

htmlBodyElement.offsetParent : Element

Read only

htmlBodyElement.offsetLeft : number

Read only

htmlBodyElement.offsetTop : number

Read only

htmlBodyElement.offsetWidth : number

Read only

htmlBodyElement.offsetHeight : number

Read only

htmlBodyElement.scrollLeft : number

htmlBodyElement.scrollTop : number

htmlBodyElement.scrollWidth : number

Read only

htmlBodyElement.scrollHeight : number

Read only

htmlBodyElement.uxpContainer : UXPContainer

Read only

htmlBodyElement.disabled : boolean

htmlBodyElement.innerHTML : string

htmlBodyElement.outerHTML : string

htmlBodyElement.contentEditable

Read only

htmlBodyElement.isConnected : boolean

Read only

htmlBodyElement.parentNode : Node

Read only

htmlBodyElement.parentElement : Element

Read only

htmlBodyElement.firstChild : Node

Read only

htmlBodyElement.lastChild : Node

Read only

htmlBodyElement.previousSibling : Node

Read only

htmlBodyElement.nextSibling : Node

Read only

htmlBodyElement.firstElementChild : Node

Read only

htmlBodyElement.lastElementChild : Node

Read only

htmlBodyElement.previousElementSibling : Node

Read only

htmlBodyElement.nextElementSibling : Node

Read only

htmlBodyElement.textContent : string

htmlBodyElement.childNodes : NodeList

Read only

htmlBodyElement.children : HTMLCollection

Read only

htmlBodyElement.ownerDocument

Read only

htmlBodyElement.scrollIntoView()

htmlBodyElement.scrollIntoViewIfNeeded()

htmlBodyElement.focus()

htmlBodyElement.blur()

htmlBodyElement.getAttribute(name)

Param
Type
name
string

htmlBodyElement.setAttribute(name, value)

Param
Type
name
string
value
string

htmlBodyElement.removeAttribute(name)

Param
Type
name
string

htmlBodyElement.hasAttribute(name)

Param
Type
name
string

htmlBodyElement.getAttributeNode(name)

Param
Type
name
string

htmlBodyElement.setAttributeNode(newAttr)

Param
Type
newAttr
\*

htmlBodyElement.removeAttributeNode(oldAttr)

Param
Type
oldAttr
\*

htmlBodyElement.click()

htmlBodyElement.getElementsByClassName(name)

Param
Type
name
string

htmlBodyElement.getElementsByTagName(name)

Param
Type
name
string

htmlBodyElement.querySelector(selector)

Param
Type
selector
string

htmlBodyElement.querySelectorAll(selector)

Param
Type
selector
string

htmlBodyElement.getBoundingClientRect()

htmlBodyElement.insertAdjacentHTML(position, value)

Param
Type
position
value
string

htmlBodyElement.insertAdjacentElement(position, node)

Param
Type
position
\*
node
\*

htmlBodyElement.insertAdjacentText(position, text)

Param
Type
position
\*
text
\*

htmlBodyElement.hasChildNodes()

htmlBodyElement.cloneNode(deep)

Param
Type
deep
boolean

htmlBodyElement.appendChild(child)

Param
Type
child
Node

htmlBodyElement.insertBefore(child, before)

Param
Type
child
Node
before
Node

htmlBodyElement.replaceChild(newChild, oldChild)

Param
Type
newChild
Node
oldChild
Node

htmlBodyElement.removeChild(child)

Param
Type
child
Node

htmlBodyElement.remove()

htmlBodyElement.before(...nodes)

Param
Type
...nodes
Array.<Node>

htmlBodyElement.after(...nodes)

Param
Type
...nodes
Array.<Node>

htmlBodyElement.replaceWith(...nodes)

Param
Type
...nodes
Array.<Node>

htmlBodyElement.contains(node)

Param
Type
node
Node

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

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

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

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

htmlBodyElement.dispatchEvent(event)

Param
Type
event
\*