Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JavaScript toLowerCase() Method

JavaScript toLowerCase() Method

String Object Reference JavaScript String object


Definition and Usage

The toLowerCase() method is used to convert a string to lowercase.

Syntax

string

.toLowerCase()


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the toLowerCase() method


Example

Example

Converts a string to lowercase:

var

str

=

"

Runoob

"

;

document

.

write

(

str

.

toLowerCase

(

)

)

;

Try it »


String Object Reference JavaScript String object