HTMLButtonElement

Extends: HTMLElement

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

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 *

results matching ""

    No results matching ""