<html> <body> <button onclick="var myS = new String('Sample String'); alert(myS.toLocaleLowerCase());"> to Locale Lower Case </button> </body> </html>