August 1999
Intermediate to advanced
1488 pages
72h 53m
English
string.toLowerCase()
The toLowerCase() method of an instance of a String object converts the characters in that string to all lowercase values. This is often used when a programmer is trying to evaluate a string a user has entered and does not care about case.
Listing 6.257 pops up a prompt box and asks the user to enter various case text. After the user clicks OK, the lowercase version of the string is written to the page.
<script language="JavaScript"> <!–– Hide // Create an instance of the String ... |
Read now
Unlock full access