org.anadix.html
Class ScriptTag

java.lang.Object
  extended by org.anadix.html.HtmlElement
      extended by org.anadix.html.ScriptTag
All Implemented Interfaces:
Comparable<HtmlElement>, Element

public class ScriptTag
extends HtmlElement

Defines a client-side script

Version:
$Id: $
Author:
tomason

Method Summary
 String getCharset()
          Specifies the character encoding used in an external script file
 String getDefer()
          Specifies that the script is executed when the page has finished parsing (only for external scripts)
 String getEvent()
          getEvent.
 String getFor()
          getFor.
 String getLanguage()
          getLanguage.
 String getSrc()
          Specifies the URL of an external script file
 String getType()
          Specifies the MIME type of the script
 
Methods inherited from class org.anadix.html.HtmlElement
compareTo, equals, getAttribute, getAttributes, getId, getName, getParent, getPosition, getSource, getTextContent, hashCode, setPosition, setSource, setTextContent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCharset

public String getCharset()
Specifies the character encoding used in an external script file

Returns:
charset of script

getType

public String getType()
Specifies the MIME type of the script

Returns:
MIME type of the script

getLanguage

public String getLanguage()

getLanguage.

Returns:
a String object.

getSrc

public String getSrc()
Specifies the URL of an external script file

Returns:
URL of external script

getDefer

public String getDefer()
Specifies that the script is executed when the page has finished parsing (only for external scripts)

Returns:
whether to run script after page parsing

getEvent

public String getEvent()

getEvent.

Returns:
a String object.

getFor

public String getFor()

getFor.

Returns:
a String object.


Copyright © 2012. All Rights Reserved.