Core JavaScript 1.5 Reference:Global Objects:String:toLowerCase
From MDC
Contents |
[edit] Summary
Returns the calling string value converted to lowercase.
| Method of String | |
| Implemented in: | JavaScript 1.0, NES2.0 |
| ECMA Version: | ECMA-262 |
[edit] Syntax
toLowerCase()
[edit] Parameters
None.
[edit] Description
The toLowerCase method returns the value of the string converted to lowercase. toLowerCase does not affect the value of the string itself.
[edit] Examples
[edit] Example: Using toLowerCase
The following example displays the lowercase string "alphabet":
var upperText="ALPHABET" document.write(upperText.toLowerCase())