Hii darkhalf!!
plz try this code
<script>
var i=0
function clickme()
{
var mytable = document.getElementById("psqtTable")
i++
var row = mytable.insertRow(-1);
// var row = mytable.insertRow(1); Also check with line
mycurrent_cell=document.createElement("TD");
filex = document.createElement('input');
filex.setAttribute('type','file');
mycurrent_cell.appendChild(filex)
mycurrent_cell.appendChild(document.createTextNode ("Element"+i))
mycurrent_cell.colSpan="2"
row.appendChild(mycurrent_cell)
}
</script>
<table id="psqtTable" border=1 bgcolor="#FFFF00">
<tr>
<td>Hello</td>
<td>World</td>
</tr>
</table>
<input type=button onclick="clickme()" value=cl>
also read the useful link about tbody and appendchild method
sad69 comment on
http://www.codingforums.com/archive/...p?t-35180.html
Cheers :)
vinod