Java Reference
In-Depth Information
Methods (continued)
Method
Introduced
Description
replace(regexp,
newValue)
JavaScript 1.2
Used to replace a substring that matches a regu-
lar expression with a new value.
search(regexp)
JavaScript 1.2
Searches for a match between a regular expres-
sion and the string. Returns the index of the
match, or -1 if not found.
slice(startIndex
[, endIndex])
JavaScript 1.0
Returns a substring of the String object.
split(delimiter)
JavaScript 1.1
Splits a String object into an array of strings by
separating the string into substrings.
substr(startIndex
[, length])
JavaScript 1.0
Returns a substring of the characters from the
given starting position and containing the speci-
fi ed number of characters.
substring(startIndex
[, endIndex])
JavaScript 1.0
Returns a substring of the characters between
two positions in the string. The character at
endIndex is not included in the substring.
toLowerCase()
JavaScript 1.0
Returns the string converted to lowercase.
toUpperCase()
JavaScript 1.0
Returns the string converted to uppercase.
HTML Methods
Method
Introduced
Description
anchor(name)
JavaScript 1.0
Returns the string surrounded by <a>…</a> tags with
the name attribute assigned the passed parameter.
big()
JavaScript 1.0
Encloses the string in <big> </big> tags.
blink()
JavaScript 1.0
Encloses the string in <blink> </blink> tags.
bold()
JavaScript 1.0
Encloses the string in <b> </b> tags.
fixed()
JavaScript 1.0
Encloses the string in <tt> </tt> tags.
fontcolor(color)
JavaScript 1.0
Encloses the string in <font>…</font> tags with the
color attribute assigned a parameter value.
fontsize(size)
JavaScript 1.0
Encloses the string in <font>…</font> tags with the
size attribute assigned a parameter value.
italics()
JavaScript 1.0
Encloses the string in <i>…</i> tags.
Continued
Search WWH ::




Custom Search