案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript">
4
function delRow()
5
  {
6
  document.getElementById('myTable').deleteTFoot()
7
  }
8
</script>
9
</head>
10
<body>
11
12
<table id="myTable" border="1">
13
<tr>
14
<td>Row1 cell1</td>
15
<td>Row1 cell2</td>
16
</tr>
17
<tr>
18
<td>Row2 cell1</td>
19
<td>Row2 cell2</td>
20
</tr>
21
<tfoot><td>my table foot</td></tfoot>
22
</table>
23
<br />
24
<input type="button" onclick="delRow()"
25
value="Delete table foot">
26
27
</body>
28
</html>
29