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 string s.
|
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.
|