@JsType(isNative=true, name="HTMLScriptElement", namespace="<global>") public final class Script extends BaseHtmlElement
BaseEventTarget.EventListenerCallback
Modifier and Type | Field and Description |
---|---|
static String |
TAG
The tag for this element.
|
Modifier and Type | Method and Description |
---|---|
String |
getCharset()
Returns the character encoding of an external script.
|
String |
getSrc()
Returns the URL of an external script.
|
String |
getType()
Returns the MIME type of the script.
|
void |
setCharset(String charset)
Sets the character encoding of an external script.
|
void |
setSrc(String src)
Sets the URL of an external script.
|
void |
setType(String type)
Sets the MIME type of the script.
|
getAbsoluteLeft, getAbsoluteTop, getInnerText, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getParentHtmlElement, getScrollingElement, getStyle, getTabIndex, removeFromParent, setInnerText, setTabIndex
getAttributes, getChildElementCount, getClientHeight, getClientLeft, getClientTop, getClientWidth, getElementsByTagName, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getNextElementSibling, getOuterHTML, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributes, remove, setId, setInnerHTML
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, removeAllChildren, removeChild, setNodeValue, setTextContent
addEventListener, removeEventListener
@JsOverlay public static final String TAG
@JsProperty public String getCharset()
@JsProperty public void setCharset(String charset)
charset
- the character encoding of an external script@JsProperty public String getSrc()
@JsProperty public void setSrc(String src)
src
- the URL of an external script@JsProperty public String getType()
@JsProperty public void setType(String type)
type
- the MIME type of the script