com.aspose.html

Class HTMLScriptElement

    • Constructor Detail

      • HTMLScriptElement

        public HTMLScriptElement(com.aspose.html.dom.DOMName name,
                                 Document doc)

        Initializes a new instance of the HTMLScriptElement class.

        Parameters:
        name - The DOM name.
        doc - The document.
    • Method Detail

      • getCharset

        @DOMNameAttribute(name="charset")
        public String getCharset()

        The character encoding of the linked resource. See the charset attribute definition in HTML 4.01.

      • setCharset

        @DOMNameAttribute(name="charset")
        public void setCharset(String value)

        The character encoding of the linked resource. See the charset attribute definition in HTML 4.01.

      • getDefer

        @DOMNameAttribute(name="defer")
        public boolean getDefer()

        Indicates that the user agent can defer processing of the script. See the defer attribute definition in HTML 4.01.

      • setDefer

        @DOMNameAttribute(name="defer")
        public void setDefer(boolean value)

        Indicates that the user agent can defer processing of the script. See the defer attribute definition in HTML 4.01.

      • getType

        @DOMNameAttribute(name="type")
        public String getType()

        The content type of the script language. See the type attribute definition in HTML 4.01.

      • setType

        @DOMNameAttribute(name="type")
        public void setType(String value)

        The content type of the script language. See the type attribute definition in HTML 4.01.

      • getScript

        public com.aspose.html.dom.runtime.modules.Script getScript()

        Gets or sets the associated script.

        Specified by:
        getScript in interface com.aspose.html.dom.runtime.modules.ILinkScript
      • setScript

        public void setScript(com.aspose.html.dom.runtime.modules.Script value)

        Gets or sets the associated script.

        Specified by:
        setScript in interface com.aspose.html.dom.runtime.modules.ILinkScript