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

HTML DOM rows 集合

定義和用法

rows 集合返回表格中所有行(TableRow 對象)的一個數(shù)組,即一個 HTMLCollection。

該集合包括 <thead>、<tfoot> 和 <tbody> 中定義的所有行。

語法

tableObject.rows[]

實例

下面的例子使用了 rows 集合來顯示第一行中的內(nèi)容:

<html>
<head>
<script type="text/javascript">
function showRow()
  {
  alert(document.getElementById('myTable').rows[0].innerHTML)
  }
</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="showRow()" value="Show innerHTML">

</body>
</html>