<html>
  <head>
    <title>JavaScript sample code</title>
  </head>

  <body>  
    <form name="capsform">
      <input type="text" name="caps" size=40 value="" 
             onChange="javascript:this.value=this.value.toLowerCase();">
      <br>
      <input type="button" value="Ok!">
    </form>
  </body>
</html>