I've tried a few things but haven't had any luck, thanks for the quick response.
<script language="JavaScript">
//instantiate a global variable to hold the # of added controls
var numberOfAddedControls = 0;
function addTextBox(){
// increment number of added controls
numberOfAddedControls += 1;
var newBox = document.createElement("<input type='text' name='tbox" + numberOfAddedControls + "'>"

;
var newBreak = document.createElement("<br>"

;
document.body.insertBefore(newBox);
document.body.insertBefore(newBreak);
// check the name of added control
//alert(newBox.name);
//position textbox
//var formbox = document.getElementById('form1');
//formbox.appendChild(document.createElement('br'));
}
</script>