亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

HTML DOM id 屬性

定義和用法

id 屬性設(shè)置或返回表格行的 id。

語(yǔ)法

tablerowObject.id=id

實(shí)例

下面的例子返回了表格行的 id:

<html>
<head>
<script type="text/javascript">
function alertId()
  {
  alert(document.getElementById('tr1').id);
  }
</script>
</head>

<body>
<table border="1">
<tr id="tr1">
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr id="tr2">
<td>Peter</td>
<td>Griffin</td>
</tr>
</table>
<br />
<input type="button" onclick="alertId()"
value="Alert table row ID" />

</body>
</html>