<HTML>
<HEAD>
<script type="text/javascript">
<!--
//추가
function addTR(tr_id) {
   
    var id = document.getElementById(tr_id);
    var len = id.rows.length;
    var newRow = id.insertRow(len-1);
    var td0 = newRow.insertCell(0);
    var td1 = newRow.insertCell(1);
    var td2 = newRow.insertCell(2);
    td0.innerHTML = (len+1)+"번째 tr ";
    td1.innerHTML = " new cell 2 ";
    td2.innerHTML = " new cell 3 ";
}
//삭제
function delTR(tr_id) {
    var id = document.getElementById(tr_id);  
    var len = id.rows.length;
    id.deleteRow(1));
}
//-->
</script>
</HEAD>
<BODY>
<form name='f'>
<input type="button" value="ADD" onclick="addTR('dynamicTR');" />
<input type="button" value="DEL" onclick="delTR('dynamicTR');" />
<TABLE id="dynamicTR" border="1">
<TR>
 <TD>asdfasdf</TD>
 <TD>asdf</TD>
 <TD>asdfasdf</TD>
</TR>
</TABLE>
</form>
</BODY>
</HTML>