HTMLScriptElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement
- 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
orNumber
- .width :
string
orNumber
- .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
or Number
The height of the element
htmlScriptElement.width : string
or 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 | * |