<script>
function del(obj)
{
obj.parentNode.parentNode.removeNode(true);
}
</script>
<body>
<table>
<tr>
<td>单元格1</td>
<td><input type=button value="delete this row" οnclick="del(this)"></td>
</tr>
<tr>
<td>单元格2</td>
<td><input type=button value="delete this row" οnclick="del(this)"></td>
</tr>
<tr>
<td>单元格3</td>
<td><input type=button value="delete this row" οnclick="del(this)"></td>
</tr>
</table>
</body>
function del(obj)
{
obj.parentNode.parentNode.removeNode(true);
}
</script>
<body>
<table>
<tr>
<td>单元格1</td>
<td><input type=button value="delete this row" οnclick="del(this)"></td>
</tr>
<tr>
<td>单元格2</td>
<td><input type=button value="delete this row" οnclick="del(this)"></td>
</tr>
<tr>
<td>单元格3</td>
<td><input type=button value="delete this row" οnclick="del(this)"></td>
</tr>
</table>
</body>