HTMLScriptElement

Extends: HTMLElement

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

new HTMLScriptElement(document, nodeName, namespaceURI)

Creates an instance of HTMLScriptElement.

Param
Type
document
\*
nodeName
\*
namespaceURI
\*

htmlScriptElement.type : string

htmlScriptElement.src : string

htmlScriptElement.charset : string

htmlScriptElement.text : string

htmlScriptElement.dataset

Access to all the custom data attributes (data-*) set.

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

htmlScriptElement.nodeName : string

Read only

htmlScriptElement.localName : string

Read only

htmlScriptElement.tagName : string

Read only

htmlScriptElement.nodeType : number

Read only

htmlScriptElement.namespaceURI : string

Read only

htmlScriptElement.id : string

htmlScriptElement.tabIndex : number

htmlScriptElement.className : string

htmlScriptElement.attributes : NamedNodeMap

Read only

htmlScriptElement.style : Style

Read only

htmlScriptElement.clientLeft : number

Read only

htmlScriptElement.clientTop : number

Read only

htmlScriptElement.clientWidth : number

Read only

htmlScriptElement.clientHeight : number

Read only

htmlScriptElement.height : string | Number

The height of the element

htmlScriptElement.width : string | Number

The width of the element

htmlScriptElement.offsetParent : Element

Read only

htmlScriptElement.offsetLeft : number

Read only

htmlScriptElement.offsetTop : number

Read only

htmlScriptElement.offsetWidth : number

Read only

htmlScriptElement.offsetHeight : number

Read only

htmlScriptElement.scrollLeft : number

htmlScriptElement.scrollTop : number

htmlScriptElement.scrollWidth : number

Read only

htmlScriptElement.scrollHeight : number

Read only

htmlScriptElement.uxpContainer : UXPContainer

Read only

htmlScriptElement.disabled : boolean

htmlScriptElement.innerHTML : string

htmlScriptElement.outerHTML : string

htmlScriptElement.contentEditable

Read only

htmlScriptElement.isConnected : boolean

Read only

htmlScriptElement.parentNode : Node

Read only

htmlScriptElement.parentElement : Element

Read only

htmlScriptElement.firstChild : Node

Read only

htmlScriptElement.lastChild : Node

Read only

htmlScriptElement.previousSibling : Node

Read only

htmlScriptElement.nextSibling : Node

Read only

htmlScriptElement.firstElementChild : Node

Read only

htmlScriptElement.lastElementChild : Node

Read only

htmlScriptElement.previousElementSibling : Node

Read only

htmlScriptElement.nextElementSibling : Node

Read only

htmlScriptElement.textContent : string

Overrides: textContent

htmlScriptElement.childNodes : NodeList

Read only

htmlScriptElement.children : HTMLCollection

Read only

htmlScriptElement.ownerDocument

Read only

htmlScriptElement.scrollIntoView()

htmlScriptElement.scrollIntoViewIfNeeded()

htmlScriptElement.focus()

htmlScriptElement.blur()

htmlScriptElement.getAttribute(name)

Param
Type
name
string

htmlScriptElement.setAttribute(name, value)

Param
Type
name
string
value
string

htmlScriptElement.removeAttribute(name)

Param
Type
name
string

htmlScriptElement.hasAttribute(name)

Param
Type
name
string

htmlScriptElement.getAttributeNode(name)

Param
Type
name
string

htmlScriptElement.setAttributeNode(newAttr)

Param
Type
newAttr
\*

htmlScriptElement.removeAttributeNode(oldAttr)

Param
Type
oldAttr
\*

htmlScriptElement.click()

htmlScriptElement.getElementsByClassName(name)

Param
Type
name
string

htmlScriptElement.getElementsByTagName(name)

Param
Type
name
string

htmlScriptElement.querySelector(selector)

Param
Type
selector
string

htmlScriptElement.querySelectorAll(selector)

Param
Type
selector
string

htmlScriptElement.getBoundingClientRect()

htmlScriptElement.insertAdjacentHTML(position, value)

Param
Type
position
value
string

htmlScriptElement.insertAdjacentElement(position, node)

Param
Type
position
\*
node
\*

htmlScriptElement.insertAdjacentText(position, text)

Param
Type
position
\*
text
\*

htmlScriptElement.hasChildNodes()

htmlScriptElement.cloneNode(deep)

Param
Type
deep
boolean

htmlScriptElement.appendChild(child)

Param
Type
child
Node

htmlScriptElement.insertBefore(child, before)

Param
Type
child
Node
before
Node

htmlScriptElement.replaceChild(newChild, oldChild)

Param
Type
newChild
Node
oldChild
Node

htmlScriptElement.removeChild(child)

Param
Type
child
Node

htmlScriptElement.remove()

htmlScriptElement.before(...nodes)

Param
Type
...nodes
Array.<Node>

htmlScriptElement.after(...nodes)

Param
Type
...nodes
Array.<Node>

htmlScriptElement.replaceWith(...nodes)

Param
Type
...nodes
Array.<Node>

htmlScriptElement.contains(node)

Param
Type
node
Node

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

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

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

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

htmlScriptElement.dispatchEvent(event)

Param
Type
event
\*