Tryit Editor v1.4

<html> <head> <script type="text/javascript"> function sameInfo() { for (i=0; i<document.myForm1.option.length; i++) { document.myForm2.option[i].value=document.myForm1.option[i].value; } } </script> </head> <body> <form name="myForm1"> First name: <input onkeyup="sameInfo()" type="text" name="option"><br /> Last name: <input onkeyup="sameInfo()" type="text" name="option"><br /> Address: <input onkeyup="sameInfo()" type="text" name="option"><br /> E-mail: <input onkeyup="sameInfo()" type="text" name="option"><br /> </form> <form name="myForm2"> First name: <input type="text" name="option"><br /> Last name: <input type="text" name="option"><br /> Address: <input type="text" name="option"><br /> E-mail: <input type="text" name="option"><br /> </form> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself