html中怎样清除一个表(table)

html中怎样清除一个表(table)

---------------------------------------------------------------

 1<table border="1" cellpadding="0" cellspacing="0" id="tbl" width="760">
 2<tr>
 3<td> </td>
 4<td> </td>
 5</tr>
 6<tr>
 7<td> </td>
 8<td> </td>
 9</tr>
10</table>
1<input onclick="tbl.removeNode(true)" type="button" value="彻底删除表格"/>

---------------------------------------------------------------

Published At
Categories with Web编程
Tagged with
comments powered by Disqus