<head runat="server">
<title></title>
<script>
function addRow()
{
var tableRef = document.getElementById('myTable').getElementsByTagName('tbody')[0];
var newRow = tableRef.insertRow(tableRef.rows.length);
var newCell = newRow.insertCell(0);
var input = document.createElement('input');
input.type = "text";
newCell.appendChild(input);
return false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<button onclick="return addRow();">click me</button>
<table id="myTable" border="1">
<tr><td>Hello1</td></tr>
<tr><td>Hello2</td></tr>
</table>
</div>
</form>
</body>