HTMLScriptElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement
-
- new HTMLScriptElement(document, nodeName, namespaceURI)
- .type :
string - .src :
string - .charset :
string - .text :
string - .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|Number - .width :
string|Number - .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 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
stringhtmlScriptElement.setAttribute(name, value)
Param
Type
name
stringvalue
stringhtmlScriptElement.removeAttribute(name)
Param
Type
name
stringhtmlScriptElement.hasAttribute(name)
Param
Type
name
stringhtmlScriptElement.getAttributeNode(name)
Param
Type
name
stringhtmlScriptElement.setAttributeNode(newAttr)
Param
Type
newAttr
\*htmlScriptElement.removeAttributeNode(oldAttr)
Param
Type
oldAttr
\*htmlScriptElement.click()
htmlScriptElement.getElementsByClassName(name)
Param
Type
name
stringhtmlScriptElement.getElementsByTagName(name)
Param
Type
name
stringhtmlScriptElement.querySelector(selector)
Param
Type
selector
stringhtmlScriptElement.querySelectorAll(selector)
Param
Type
selector
stringhtmlScriptElement.getBoundingClientRect()
htmlScriptElement.insertAdjacentHTML(position, value)
Param
Type
position
value
stringhtmlScriptElement.insertAdjacentElement(position, node)
Param
Type
position
\*node
\*htmlScriptElement.insertAdjacentText(position, text)
Param
Type
position
\*text
\*htmlScriptElement.hasChildNodes()
htmlScriptElement.cloneNode(deep)
Param
Type
deep
booleanhtmlScriptElement.appendChild(child)
Param
Type
child
htmlScriptElement.insertBefore(child, before)
htmlScriptElement.replaceChild(newChild, oldChild)
htmlScriptElement.removeChild(child)
Param
Type
child
htmlScriptElement.remove()
htmlScriptElement.before(...nodes)
Param
Type
...nodes
htmlScriptElement.after(...nodes)
Param
Type
...nodes
htmlScriptElement.replaceWith(...nodes)
Param
Type
...nodes
htmlScriptElement.contains(node)
Param
Type
node
htmlScriptElement.addEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlScriptElement.removeEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlScriptElement.dispatchEvent(event)
Param
Type
event
\*