Class HTMLScriptElement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class HTMLScriptElement
    extends HTMLElement
    The JavaScript object that represents an HTMLScriptElement.
    See Also:
    Serialized Form
    • Constructor Detail

      • HTMLScriptElement

        public HTMLScriptElement()
        Creates an instance.
    • Method Detail

      • getSrc

        public java.lang.String getSrc()
        Returns the src property.
        Returns:
        the src property
      • setSrc

        public void setSrc​(java.lang.String src)
        Sets the src property.
        Parameters:
        src - the src property
      • getText

        public java.lang.String getText()
        Returns the text property.
        Returns:
        the text property
      • setText

        public void setText​(java.lang.String text)
        Sets the text property.
        Parameters:
        text - the text property
      • getType

        public java.lang.String getType()
        Returns the type property.
        Returns:
        the type property
      • setType

        public void setType​(java.lang.String type)
        Sets the type property.
        Parameters:
        type - the type property
      • appendChild

        public java.lang.Object appendChild​(java.lang.Object childObject)
        Overwritten for special handling.
        Overrides:
        appendChild in class Node
        Parameters:
        childObject - the node to add to this node
        Returns:
        the newly added child node
      • isAsync

        public boolean isAsync()
        Returns the async property.
        Returns:
        the async property
      • setAsync

        public void setAsync​(boolean async)
        Sets the async property.
        Parameters:
        async - the async property