HTMLScriptElement Interface


The HTMLScriptElement Interface represents scripts statements.
IDL Definition

Interface HTMLScriptElement : HTMLElement {

           attribute  DOMString                  text;
           attribute  DOMString                  htmlFor;
           attribute  DOMString                  event;
           attribute  DOMString                  charset;
           attribute  boolean                    defer;
           attribute  DOMString                  src;
           attribute  DOMString                  type;
};

Semantic Requirements

  1. The text attribute is the script content of the element.
  2. The charset attribute is the character encoding of the linked resource.
  3. The defer attribute indicates that the user agent can defer processing of the script.
  4. The src attribute contains an URI designating an external script.
  5. The type attribute is the content type of the script language.

If you have comments or suggestions, email me at mbrady@nist.gov