rendered paste body<html>
<head>
<script type="text/javascript">
function insRow()
{
var x=document.getElementById('myTable').insertRow(0)
var y=x.insertCell(0)
var z=x.insertCell(1)
y.innerHTML='<input type="button" value="Delete" onclick="przesun(this.parentNode.parentNode.rowIndex)">'
z.innerHTML="2"
y.style.width="100px"
z.style.width="100px"
}
function przesun(id)
{
var x=document.getElementById('myTable').deleteRow(id)
alert(x)
}
</script>
</head>
<body>
<table id="myTable" border="1">
</table>
<table id="myTable" border="1">
</table>
<form>
<input type="button" onclick="insRow()" value="Insert row">
</form>
</body>
</html>