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