<html> <body> <form> <div id=divf> <input type=text> </div> <input type=button onclick=plus()> </form> <script> function plus(){ document.getElementById('divf').innerHTML+='<br><input type=text>' } </script> </body> </html>