Module jdk.xml.dom

Interface HTMLScriptElement

All Superinterfaces:
Element, HTMLElement, Node

public interface HTMLScriptElement extends HTMLElement
Script statements. See the SCRIPT element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Since:
1.4, DOM Level 2
  • Method Details Link icon

    • getText Link icon

      String getText()
      The script content of the element.
    • setText Link icon

      void setText(String text)
    • getHtmlFor Link icon

      String getHtmlFor()
      Reserved for future use.
    • setHtmlFor Link icon

      void setHtmlFor(String htmlFor)
    • getEvent Link icon

      String getEvent()
      Reserved for future use.
    • setEvent Link icon

      void setEvent(String event)
    • getCharset Link icon

      String getCharset()
      The character encoding of the linked resource. See the charset attribute definition in HTML 4.0.
    • setCharset Link icon

      void setCharset(String charset)
    • getDefer Link icon

      boolean getDefer()
      Indicates that the user agent can defer processing of the script. See the defer attribute definition in HTML 4.0.
    • setDefer Link icon

      void setDefer(boolean defer)
    • getSrc Link icon

      String getSrc()
      URI designating an external script. See the src attribute definition in HTML 4.0.
    • setSrc Link icon

      void setSrc(String src)
    • getType Link icon

      String getType()
      The content type of the script language. See the type attribute definition in HTML 4.0.
    • setType Link icon

      void setType(String type)