The native browser JavaScript object used to work with text.
An instance can also be created with the shorthand "initial value".
Note that this object is implemented and supported by the web browser and results of its use may vary.
Method Summary
|
public String |
anchor(String name)
-
Creates HTML markup representing an HTML a tag where the body of the tag is the value of the string and the specified value is the name attribute.
|
public String |
big()
-
Creates HTML markup representing an HTML big tag where the body of the tag is the value of the string.
|
public String |
blink()
-
Creates HTML markup representing an HTML blink tag where the body of the tag is the value of the string.
|
public String |
bold()
-
Creates HTML markup representing an HTML b tag where the body of the tag is the value of the string.
|
public String |
charAt(Number index)
-
Retrieves the character in the string at the specified index.
|
public Number |
charCodeAt(Number index)
-
Retrieves the Unicode value of the character in the string at the specified index.
|
public String |
concat(String... stringToAppend)
-
Creates a new String that combines this String with the specified Strings.
|
public String |
fixed()
-
Creates HTML markup representing an HTML tt tag where the body of the tag is the value of the string.
|
public String |
fontcolor(String color)
-
Creates HTML markup representing an HTML font tag where the body of the tag is the value of the string and the specified value is the color attribute.
|
public String |
fontsize(String size)
-
Creates HTML markup representing an HTML font tag where the body of the tag is the value of the string and the specified value is the size attribute.
|
public static String |
fromCharCode(Number... charCodes)
-
Generates a new String using characters specified by Unicode values.
|
public Number |
indexOf(String substring, Number startingIndex)
-
Retrieves the index at which the specified substring is found.
|
public String |
italics()
-
Creates HTML markup representing an HTML i tag where the body of the tag is the value of the string.
|
public Number |
lastIndexOf(String substring, Number startingIndex)
-
Retrieves the last index at which the specified substring is found.
|
public String |
link(String href)
-
Creates HTML markup representing an HTML a tag where the body of the tag is the value of the string and the specified value is the href attribute.
|
public String |
match(RegExp pattern)
-
Retrieves the match in this string for the given pattern.
|
public String |
replace(RegExp pattern, String replacement)
-
Exchanges the match or matches in this string for the given pattern with the given replacement.
|
public Number |
search(RegExp pattern)
-
Searches this string for the given pattern.
|
public Number |
slice(Number start, Number end)
-
Retrieves a substring of of this string.
|
public String |
small()
-
Creates HTML markup representing an HTML small tag where the body of the tag is the value of the string.
|
public Array<String> |
split(RegExp pattern, Number splitsToInclude)
-
Splits this string into an array of pieces.
|
public String |
strike()
-
Creates HTML markup representing an HTML strike tag where the body of the tag is the value of the string.
|
public String |
sub()
-
Creates HTML markup representing an HTML sub tag where the body of the tag is the value of the string.
|
public Number |
substr(Number start, Number length)
-
Retrieves a substring of of this string.
|
public Number |
substring(Number start, Number end)
-
Retrieves a substring of of this string.
|
public String |
sup()
-
Creates HTML markup representing an HTML sup tag where the body of the tag is the value of the string.
|
public String |
toLowerCase()
-
Creates a lower case representation of this string.
|
public String |
toUpperCase()
-
Creates an upper case representation of this string.
|