Export (0) Print
Expand All

toLowerCase Method (JavaScript)

Returns a string where all alphabetic characters have been converted to lowercase.

strVariable.toLowerCase( )
"String Literal".toLowerCase( ) 

The toLowerCase method has no effect on nonalphabetic characters.

The following example demonstrates the effects of the toLowerCase method:

var strVariable = "This is a STRING.";
strVariable = strVariable.toLowerCase( );

The value of strVariable after the last statement is:

this is a string.

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Applies To: String Object (JavaScript)

Community Additions

Show:
© 2014 Microsoft