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

      • getText

        @DOMNameAttribute(name="text")
        public java.lang.String getText()

        The script content of the element.

      • setText

        @DOMNameAttribute(name="text")
        public void setText(java.lang.String value)

        The script content of the element.

      • setEvent

        @DOMNameAttribute(name="event")
        public void setEvent(java.lang.String value)

        Reserved for future use.

      • getCharset

        @DOMNameAttribute(name="charset")
        public java.lang.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(java.lang.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 java.lang.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(java.lang.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