TR.rowIndex (Property)

A zero-based integer that indicates which row of the table this <TR> block represents.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:-myTR.rowIndex

The TR.rowIndex property is the vertical coordinate for cells in this row measured across the entire table.

This property yields a zero-based index number for this table row within the rows[] collection belonging to the TABLE object the row is a member of.

Note that this index will not hold true for the rows[] collections belonging to THEAD, TBODY and TFOOT objects. For that, you should inspect the sectionRowIndex property.

See also:TABLE.cells[], TABLE.rows[], TBODY.rows[], TFOOT.rows[], THEAD.rows[], TR.sectionRowIndex

Property attributes: