Convert string to lowercase in javascript

Example:

 



Code Sample:

<html> <head> <title>Convert string to lower case in JavaScript</title> <script language="Javascript" type="text/javascript"> function converttolower(t) { try { var strlower = t.value; document.getElementById("tdval").innerHTML = strlower.toLowerCase(); } catch (err) { alert(err.Description); } } </script> </head> <body> <table align="center"> <tr> <td> <input type="text" onkeyup="converttolower(this);" /> </td> </tr> <tr> <td id="tdval">   </td> </tr> </table> </body> </html>