org.w3c.dom.html2

Interface HTMLScriptElement

public interface HTMLScriptElement extends HTMLElement

Script statements. See the SCRIPT element definition in HTML 4.01.

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

Method Summary
StringgetCharset()
The character encoding of the linked resource.
booleangetDefer()
Indicates that the user agent can defer processing of the script.
StringgetEvent()
Reserved for future use.
StringgetHtmlFor()
Reserved for future use.
StringgetSrc()
URI [IETF RFC 2396] designating an external script.
StringgetText()
The script content of the element.
StringgetType()
The content type of the script language.
voidsetCharset(String charset)
The character encoding of the linked resource.
voidsetDefer(boolean defer)
Indicates that the user agent can defer processing of the script.
voidsetEvent(String event)
Reserved for future use.
voidsetHtmlFor(String htmlFor)
Reserved for future use.
voidsetSrc(String src)
URI [IETF RFC 2396] designating an external script.
voidsetText(String text)
The script content of the element.
voidsetType(String type)
The content type of the script language.

Method Detail

getCharset

public String getCharset()
The character encoding of the linked resource. See the charset attribute definition in HTML 4.01.

getDefer

public boolean getDefer()
Indicates that the user agent can defer processing of the script. See the defer attribute definition in HTML 4.01.

getEvent

public String getEvent()
Reserved for future use.

getHtmlFor

public String getHtmlFor()
Reserved for future use.

getSrc

public String getSrc()
URI [IETF RFC 2396] designating an external script. See the src attribute definition in HTML 4.01.

getText

public String getText()
The script content of the element.

getType

public String getType()
The content type of the script language. See the type attribute definition in HTML 4.01.

setCharset

public void setCharset(String charset)
The character encoding of the linked resource. See the charset attribute definition in HTML 4.01.

setDefer

public void setDefer(boolean defer)
Indicates that the user agent can defer processing of the script. See the defer attribute definition in HTML 4.01.

setEvent

public void setEvent(String event)
Reserved for future use.

setHtmlFor

public void setHtmlFor(String htmlFor)
Reserved for future use.

setSrc

public void setSrc(String src)
URI [IETF RFC 2396] designating an external script. See the src attribute definition in HTML 4.01.

setText

public void setText(String text)
The script content of the element.

setType

public void setType(String type)
The content type of the script language. See the type attribute definition in HTML 4.01.