| Methods |
Description |
| anchor(anchorName) |
It displays a string with the specified anchor name as a hypertext anchor. |
| big( ) |
It displays a string in large font as within the HTML <BIG></BIG> tags. |
| blink( ) |
It displays the string as blinking as within the HTML <BLINK></BLINK> tags. |
| bold( ) |
It displays bold characters of string as within HTML <B></B> tags. |
| charAt(index) |
It returns a string that contains a character at specified index of the string to which the method is applied. |
| fixed( ) |
This method displays a string using a fixed pitch font, as within the teletype HTML tags. |
| fontcolor(color) |
The string is displayed in the specified color. |
| fontsize( ) |
The string is displayed with a specified font size, size should be within 1 & 7. |
| indexOf(pattern) |
This method returns the index of the first occurrence of the specified pattern which is contained in the string or it returns -1, if the pattern is not found in the string. |
| indexOf(pattern, startIndex) |
This method also returns the index of the first occurrence of the specified pattern which is contained in the string but the searching starts from a position specified by startIndex or it returns -1, if the pattern is not found. |
| italics( ) |
It makes a string to be displayed using the italics HTML tags. |
| lastIndexOf(pattern) |
It returns the index of the last string specified by the pattern contained in the string. Returns -1 if the pattern is not contained in the string. |
| lastIndexOf(pattern, startIndex ) |
It also returns the index of the last string specified by the pattern contained in the string, but searching begins at a position specified by startIndex. |
| link( href ) |
A string is displayed as a hyperlink as specified by the href parameter. |
| small( ) |
A string is displayed using using small HTML tags. |
| split(separator) |
It splits an array into substrings, based on separator character. |
| strike( ) |
Makes a string to appear using the strikeout HTML tags. |
| sub( ) |
Makes a string to appear using subscript HTML tags. |
| substring( startIndex, endIndex) |
It returns the string starting at the 'start index' of the string and ending at the 'end index' location. |
| sup( ) |
Creates a string to appear using superscript HTML tags. |
| toLowerCase( ) |
It returns a copy of the string converted into lowercase. |
| toUpperCase( ) |
It returns a copy of the string converted into uppercase. |