Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM tr rowIndex property

tr rowIndex property

tr Object Reference tr object


Definition and Usage

The rowIndex property returns a row (rows ) within the collection of rows in the table (row index).

Syntax

Return the rowIndex property:

trObject.rowIndex

**Note:** The rowIndex property has no default value.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the rowIndex property


Example

Example

The following example returns the position of a row in the table:

Runoob Tutorial(runoob.com)

    

        

    

    

    

    

    

    

    

Click to display the row index
Click to display the row index
Click to display the row index

Try it »


tr Object Reference tr object