欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML DOM createTFoot() 方法

定義和用法

createTFoot() 方法用于在表格中獲取或創(chuàng)建 <tfoot> 元素。

語法

tableObject.createTFoot()

返回值

返回一個 TableSection,表示該表的 <tfoot> 元素。如果該表格已經(jīng)有了腳注,則返回它。如果該表沒有腳注,則創(chuàng)建一個新的空 <tfoot> 元素,把它插入表格,并返回它。

實例

下面的例子為表格創(chuàng)建了一個腳注:

<html>
<head>
<script type="text/javascript">
function createCaption()
{
var x=document.getElementById('myTable').createTFoot()
x.innerHTML="My table foot"
}
</script>
</head>
<body>

<table id="myTable" border="1">
<tr>
<td>Row1 cell1</td>
<td>Row1 cell2</td>
</tr>
<tr>
<td>Row2 cell1</td>
<td>Row2 cell2</td>
</tr>
</table>
<br />
<input type="button" onclick="createCaption()"
value="Create caption">

</body>
</html>