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
- The text attribute is the script content of the element.
- The charset attribute is the character encoding of the linked resource.
- The defer attribute indicates that the user agent can defer processing of the script.
- The src attribute contains an URI designating an external script.
- The type attribute is the content type of the script language.
If you have comments or suggestions, email me at mbrady@nist.gov