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