HTMLElement ⇐ Element

Kind: global class Extends: Element Access: public See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement

new HTMLElement(document, nodeName, namespaceURI)

Creates an instance of HTMLElement.

Param Type
document *
nodeName *
namespaceURI *

htmlElement.nodeName : string

Kind: instance property of HTMLElement Read only: true

htmlElement.localName : string

Kind: instance property of HTMLElement Read only: true

htmlElement.tagName : string

Kind: instance property of HTMLElement Read only: true

htmlElement.nodeType : number

Kind: instance property of HTMLElement Read only: true

htmlElement.namespaceURI : string

Kind: instance property of HTMLElement Read only: true

htmlElement.id : string

Kind: instance property of HTMLElement

htmlElement.className : string

Kind: instance property of HTMLElement

htmlElement.attributes : NamedNodeMap

Kind: instance property of HTMLElement Read only: true

htmlElement.style : Style

Kind: instance property of HTMLElement Read only: true

htmlElement.clientLeft : number

Kind: instance property of HTMLElement Read only: true

htmlElement.clientTop : number

Kind: instance property of HTMLElement Read only: true

htmlElement.clientWidth : number

Kind: instance property of HTMLElement Read only: true

htmlElement.clientHeight : number

Kind: instance property of HTMLElement Read only: true

htmlElement.offsetLeft : number

Kind: instance property of HTMLElement Read only: true

htmlElement.offsetTop : number

Kind: instance property of HTMLElement Read only: true

htmlElement.offsetWidth : number

Kind: instance property of HTMLElement Read only: true

htmlElement.offsetHeight : number

Kind: instance property of HTMLElement Read only: true

htmlElement.scrollLeft : number

Kind: instance property of HTMLElement

htmlElement.scrollTop : number

Kind: instance property of HTMLElement

htmlElement.scrollWidth : number

Kind: instance property of HTMLElement Read only: true

htmlElement.scrollHeight : number

Kind: instance property of HTMLElement Read only: true

htmlElement.disabled : boolean

Kind: instance property of HTMLElement

htmlElement.innerHTML : string

Kind: instance property of HTMLElement

htmlElement.outerHTML : string

Kind: instance property of HTMLElement

htmlElement.contentEditable

Kind: instance property of HTMLElement Read only: true

htmlElement.isConnected : boolean

Kind: instance property of HTMLElement Read only: true

htmlElement.parentNode : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.firstChild : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.lastChild : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.previousSibling : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.nextSibling : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.firstElementChild : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.lastElementChild : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.previousElementSibling : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.nextElementSibling : Node

Kind: instance property of HTMLElement Read only: true

htmlElement.textContent : string

Kind: instance property of HTMLElement

htmlElement.childNodes : NodeList

Kind: instance property of HTMLElement Read only: true

htmlElement.ownerDocument

Kind: instance property of HTMLElement Read only: true

htmlElement.offsetParent

Kind: instance property of HTMLElement Read only: true

htmlElement.scrollIntoView()

Kind: instance method of HTMLElement

htmlElement.scrollIntoViewIfNeeded()

Kind: instance method of HTMLElement

htmlElement.focus()

Kind: instance method of HTMLElement

htmlElement.blur()

Kind: instance method of HTMLElement

htmlElement.getAttribute(name) ⇒ string

Kind: instance method of HTMLElement

Param Type
name string

htmlElement.setAttribute(name, value)

Kind: instance method of HTMLElement

Param Type
name string
value string

htmlElement.removeAttribute(name)

Kind: instance method of HTMLElement

Param Type
name string

htmlElement.hasAttribute(name) ⇒ boolean

Kind: instance method of HTMLElement

Param Type
name string

htmlElement.getAttributeNode(name) ⇒ *

Kind: instance method of HTMLElement

Param Type
name string

htmlElement.setAttributeNode(newAttr)

Kind: instance method of HTMLElement

Param Type
newAttr *

htmlElement.removeAttributeNode(oldAttr)

Kind: instance method of HTMLElement

Param Type
oldAttr *

htmlElement.getElementsByClassName(name) ⇒ NodeList

Kind: instance method of HTMLElement

Param Type
name string

htmlElement.getElementsByTagName(name) ⇒ NodeList

Kind: instance method of HTMLElement

Param Type
name string

htmlElement.querySelector(selector) ⇒ Element

Kind: instance method of HTMLElement

Param Type
selector string

htmlElement.querySelectorAll(selector) ⇒ NodeList

Kind: instance method of HTMLElement

Param Type
selector string

htmlElement.getBoundingClientRect() ⇒ *

Kind: instance method of HTMLElement

htmlElement.insertAdjacentHTML(position, value)

Kind: instance method of HTMLElement

Param Type
position
value string

htmlElement.insertAdjacentElement(position, node) ⇒ Node

Kind: instance method of HTMLElement

Param Type
position *
node *

htmlElement.insertAdjacentText(position, text)

Kind: instance method of HTMLElement

Param Type
position *
text *

htmlElement.hasChildNodes() ⇒ boolean

Kind: instance method of HTMLElement

htmlElement.cloneNode(deep) ⇒ Node

Kind: instance method of HTMLElement

Param Type
deep boolean

htmlElement.appendChild(child) ⇒ Node

Kind: instance method of HTMLElement

Param Type
child Node

htmlElement.insertBefore(child, before) ⇒ Node

Kind: instance method of HTMLElement

Param Type
child Node
before Node

htmlElement.replaceChild(newChild, oldChild) ⇒ Node

Kind: instance method of HTMLElement

Param Type
newChild Node
oldChild Node

htmlElement.removeChild(child) ⇒ Node

Kind: instance method of HTMLElement

Param Type
child Node

htmlElement.remove()

Kind: instance method of HTMLElement

htmlElement.before(...nodes)

Kind: instance method of HTMLElement

Param Type
...nodes Array.<Node>

htmlElement.after(...nodes)

Kind: instance method of HTMLElement

Param Type
...nodes Array.<Node>

htmlElement.replaceWith(...nodes)

Kind: instance method of HTMLElement

Param Type
...nodes Array.<Node>

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

Kind: instance method of HTMLElement

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

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

Kind: instance method of HTMLElement

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

htmlElement.dispatchEvent(event)

Kind: instance method of HTMLElement

Param Type
event *

results matching ""

    No results matching ""