Tryit Editor v1.4

<html> <head> <script type="text/javascript"> function writeMessage() { document.forms[0].mySecondInput.value=document.forms[0].myInput.value; } </script> </head> <body> <p>The onkeyup event occurs when the a keyboard key is on it's way UP.</p> <form> Write a message:<br /> <input type="text" name="myInput" onkeyup="writeMessage()" size="20"> <input type="text" name="mySecondInput" size="20"> </form> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself