Change the text value in text box into upper case
<html> <head> <title>Text Object Value</title> <script type="text/javascript"> function upperMe() { document.getElementById("output").value = document.getElementById("input").value.toUpperCase(); } </script> </head> <body> Enter lowercase letters for conversion to uppercase:<br> <form name="converter"> <input type="text" name="input" id="input" value="sample" onchange="upperMe()" /><br /> <input type="text" name="output" id="output" value="" /> </form> </body> </html>