« 另类:ASP使用Python又一个javascript与cookie的例子 »

deleteTFoot方法

语法:
TABLE . deleteTFoot()
参数:

返回值:

说明:
从 table 中删除 tfoot 及其内容。
假如 table 中存在一个或多个 tfoot ,则该方法将仅仅删除其中第一个 tfoot 及其内容。

<script>
var i_nowheight=240;
function rdl_doDel(){
document.all.myTable.deleteTFoot();
i_nowheight-=20;
window.resizeTo(320,i_nowheight);
}
</script>


<table cellspacing=1 id=myTable><tfoot><tr><td>第1个TFOOT</td></tr></tfoot><tfoot><tr><td>第2个TFOOT</td></tr></tfoot></table>
<br><input type=button value=" 删除TFOOT " onclick="rdl_doDel();">

原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。