Interface HTMLScriptElement

All Superinterfaces:
Element, EventTarget, HTMLElement, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode
All Known Implementing Classes:
HTMLScriptElementImpl

public interface HTMLScriptElement extends HTMLElement
HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface).
  • Method Details

    • isAsync

      Boolean isAsync()

      isAsync.

      Returns:
      a boolean.
    • setAsync

      void setAsync(Object async)

      setAsync.

      Parameters:
      async - a boolean.
    • getCharset

      @Deprecated String getCharset()
      Deprecated.
      Sets or retrieves the character set used to encode the object.
      Returns:
      a String object.
    • setCharset

      void setCharset(String charset)

      setCharset.

      Parameters:
      charset - a String object.
    • getCrossOrigin

      String getCrossOrigin()

      getCrossOrigin.

      Returns:
      a String object.
    • setCrossOrigin

      void setCrossOrigin(String crossOrigin)

      setCrossOrigin.

      Parameters:
      crossOrigin - a String object.
    • isDefer

      boolean isDefer()
      Sets or retrieves the status of the script.
      Returns:
      a boolean.
    • setDefer

      void setDefer(boolean defer)

      setDefer.

      Parameters:
      defer - a boolean.
    • getEvent

      @Deprecated String getEvent()
      Deprecated.
      Sets or retrieves the event for which the script is written.
      Returns:
      a String object.
    • setEvent

      void setEvent(String event)

      setEvent.

      Parameters:
      event - a String object.
    • getHtmlFor

      @Deprecated String getHtmlFor()
      Deprecated.
      Sets or retrieves the object that is bound to the event script.
      Returns:
      a String object.
    • setHtmlFor

      void setHtmlFor(String htmlFor)

      setHtmlFor.

      Parameters:
      htmlFor - a String object.
    • getIntegrity

      String getIntegrity()

      getIntegrity.

      Returns:
      a String object.
    • setIntegrity

      void setIntegrity(String integrity)

      setIntegrity.

      Parameters:
      integrity - a String object.
    • isNoModule

      boolean isNoModule()

      isNoModule.

      Returns:
      a boolean.
    • setNoModule

      void setNoModule(boolean noModule)

      setNoModule.

      Parameters:
      noModule - a boolean.
    • getReferrerPolicy

      String getReferrerPolicy()

      getReferrerPolicy.

      Returns:
      a String object.
    • setReferrerPolicy

      void setReferrerPolicy(String referrerPolicy)

      setReferrerPolicy.

      Parameters:
      referrerPolicy - a String object.
    • getSrc

      String getSrc()
      Retrieves the URL to an external file that contains the source code or data.
      Returns:
      a String object.
    • setSrc

      void setSrc(String src)

      setSrc.

      Parameters:
      src - a String object.
    • getText

      String getText()
      Retrieves or sets the text of the object as a string.
      Returns:
      a String object.
    • setText

      void setText(String text)

      setText.

      Parameters:
      text - a String object.
    • getType

      String getType()
      Sets or retrieves the MIME type for the associated scripting engine.
      Returns:
      a String object.
    • setType

      void setType(String type)

      setType.

      Parameters:
      type - a String object.