Class HTMLScriptElement

All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • HTMLScriptElement

      public HTMLScriptElement()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getSrc

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

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

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

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

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

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

      public Object appendChild(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