Changes

Jump to: navigation, search

JavaScript String Object

761 bytes added, 17:12, 27 April 2007
JavaScript String Object Methods
</tr>
<tr>
<td>strike()<td>Returns string wrapped in the string in HTML &lt;strike&gt; and &lt;/strike&gt; elements to produce a stikeout strikeout effect (e.g <strike>Example</strike>)</td>
</tr>
<tr>
<tr>
<td>sup()<td>Returns string wrapped in the string in HTML &lt;sup&gt; and &lt;/sup&gt; elements to produce a superscript effect (e.g <sup>Example</sup>)</td>
</tr>
<tr>
<td>substr(''start'', ''length'')<td>Accepts a start and length (number of characters) as arguments and returns the string fragment that is located between these two positions. ''length'' is optional. If not specified returns fragment from ''start'' index to end of string.</td>
</tr>
<tr>
<td>substring(''start'', ''end'')<td>Accepts a start and an end index as arguments and returns the string fragment that is located between these two positions. ''End'' is optional. If not specified returns fragment from ''start'' index to end of string.</td>
</tr>
<tr>
<td>toLowerCase()<td>Returns the string with all characters converted to lower case</td>
</tr>
<tr>
<td>toUpperCase()<td>Returns the string with all characters converted to upper case</td>
</tr>
</table>

Navigation menu