Example:
Code:

<html>
 <body>
 <script type="text/javascript"> 
{
var txt="JOHN";
document.write(txt.toLowerCase());
}
 </script>
 </body> 
</html>

Output:

john

eXTReMe Tracker