最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

rowIndex Property

Internet Development Index

Retrieves the position of the object in the rows collection for the table.

Syntax

HTMLN/A
Scripting[ iIndex = ] TR.rowIndex

Possible Values

iIndexInteger that receives Integer爐hat specifies the index number.

The property is read-only. The property has no default value.

Remarks

This property is different from sectionRowIndex, which indicates the object's position in the tBody, tHead, or tFoot?B>rows collection. These sections are mutually exclusive, so the tr is always contained in one of these sections and in the table. You can determine the rowIndex property of an object by the order in which the object appears in the HTML source.

Example

This example function shows how to use the rowIndex attribute to format a table. The function sets the background color of the rows in the table to black or white, alternating row by row.

function formatTable(oTable)
{
var rows=oTable.rows;
for(var i=0;i<rows.length;i++)
{
if(i%2==0) {
rows[i].style.backgroundColor = "black";
rows[i].style.color = "white";
} else {
rows[i].style.backgroundColor = "white";
rows[i].style.color = "black";
}
}
}

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

TR

See Also

cellIndex, sourceIndex
南通市| 台州市| 友谊县| 清丰县| 五原县| 永川市| 谢通门县| 尼玛县| 邻水| 自治县| 金塔县| 霍州市| 图木舒克市| 镇康县| 大丰市| 论坛| 巴林左旗| 如东县| 高阳县| 鸡西市| 池州市| 长兴县| 上高县| 墨江| 玛纳斯县| 武川县| 利津县| 邹城市| 黑山县| 平舆县| 曲沃县| 东乡族自治县| 镇原县| 高州市| 普兰县| 清原| 青铜峡市| 潞城市| 榆中县| 昌图县| 清新县|