HTMLBodyElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement
-
- new HTMLBodyElement(document, nodeName, namespaceURI)
- .dataset
- .nodeName :
string - .localName :
string - .tagName :
string - .nodeType :
number - .namespaceURI :
string - .id :
string - .tabIndex :
number - .className :
string - .attributes :
NamedNodeMap - .style :
Style - .clientLeft :
number - .clientTop :
number - .clientWidth :
number - .clientHeight :
number - .height :
string|Number - .width :
string|Number - .offsetParent :
Element - .offsetLeft :
number - .offsetTop :
number - .offsetWidth :
number - .offsetHeight :
number - .scrollLeft :
number - .scrollTop :
number - .scrollWidth :
number - .scrollHeight :
number - .uxpContainer :
UXPContainer - .disabled :
boolean - .innerHTML :
string - .outerHTML :
string - .contentEditable
- .isConnected :
boolean - .parentNode :
Node - .parentElement :
Element - .firstChild :
Node - .lastChild :
Node - .previousSibling :
Node - .nextSibling :
Node - .firstElementChild :
Node - .lastElementChild :
Node - .previousElementSibling :
Node - .nextElementSibling :
Node - .textContent :
string - .childNodes :
NodeList - .children :
HTMLCollection - .ownerDocument
- .scrollIntoView()
- .scrollIntoViewIfNeeded()
- .focus()
- .blur()
- .getAttribute(name)
- .setAttribute(name, value)
- .removeAttribute(name)
- .hasAttribute(name)
- .getAttributeNode(name)
- .setAttributeNode(newAttr)
- .removeAttributeNode(oldAttr)
- .click()
- .getElementsByClassName(name)
- .getElementsByTagName(name)
- .querySelector(selector)
- .querySelectorAll(selector)
- .getBoundingClientRect()
- .insertAdjacentHTML(position, value)
- .insertAdjacentElement(position, node)
- .insertAdjacentText(position, text)
- .hasChildNodes()
- .cloneNode(deep)
- .appendChild(child)
- .insertBefore(child, before)
- .replaceChild(newChild, oldChild)
- .removeChild(child)
- .remove()
- .before(...nodes)
- .after(...nodes)
- .replaceWith(...nodes)
- .contains(node)
- .addEventListener(eventName, callback, [capture])
- .removeEventListener(eventName, callback, [capture])
- .dispatchEvent(event)
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
stringhtmlBodyElement.setAttribute(name, value)
Param
Type
name
stringvalue
stringhtmlBodyElement.removeAttribute(name)
Param
Type
name
stringhtmlBodyElement.hasAttribute(name)
Param
Type
name
stringhtmlBodyElement.getAttributeNode(name)
Param
Type
name
stringhtmlBodyElement.setAttributeNode(newAttr)
Param
Type
newAttr
\*htmlBodyElement.removeAttributeNode(oldAttr)
Param
Type
oldAttr
\*htmlBodyElement.click()
htmlBodyElement.getElementsByClassName(name)
Param
Type
name
stringhtmlBodyElement.getElementsByTagName(name)
Param
Type
name
stringhtmlBodyElement.querySelector(selector)
Param
Type
selector
stringhtmlBodyElement.querySelectorAll(selector)
Param
Type
selector
stringhtmlBodyElement.getBoundingClientRect()
htmlBodyElement.insertAdjacentHTML(position, value)
Param
Type
position
value
stringhtmlBodyElement.insertAdjacentElement(position, node)
Param
Type
position
\*node
\*htmlBodyElement.insertAdjacentText(position, text)
Param
Type
position
\*text
\*htmlBodyElement.hasChildNodes()
htmlBodyElement.cloneNode(deep)
Param
Type
deep
booleanhtmlBodyElement.appendChild(child)
Param
Type
child
htmlBodyElement.insertBefore(child, before)
htmlBodyElement.replaceChild(newChild, oldChild)
htmlBodyElement.removeChild(child)
Param
Type
child
htmlBodyElement.remove()
htmlBodyElement.before(...nodes)
Param
Type
...nodes
htmlBodyElement.after(...nodes)
Param
Type
...nodes
htmlBodyElement.replaceWith(...nodes)
Param
Type
...nodes
htmlBodyElement.contains(node)
Param
Type
node
htmlBodyElement.addEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlBodyElement.removeEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlBodyElement.dispatchEvent(event)
Param
Type
event
\*