Class Script

  • All Implemented Interfaces:
    IsJSType

    @JsType(isNative=true,
            name="HTMLScriptElement",
            namespace="<global>")
    public final class Script
    extends BaseHtmlElement
    Provides special properties and methods for manipulating the behavior and execution of <script> elements
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getCharset

        @JsProperty
        public String getCharset()
        Returns the character encoding of an external script.
        Returns:
        the character encoding of an external script
      • setCharset

        @JsProperty
        public void setCharset​(String charset)
        Sets the character encoding of an external script.
        Parameters:
        charset - the character encoding of an external script
      • getSrc

        @JsProperty
        public String getSrc()
        Returns the URL of an external script.
        Returns:
        the URL of an external script
      • setSrc

        @JsProperty
        public void setSrc​(String src)
        Sets the URL of an external script.
        Parameters:
        src - the URL of an external script
      • getType

        @JsProperty
        public String getType()
        Returns the MIME type of the script.
        Returns:
        the MIME type of the script
      • setType

        @JsProperty
        public void setType​(String type)
        Sets the MIME type of the script.
        Parameters:
        type - the MIME type of the script