javascript TR rowIndex

rowIndexNN 6 IE 4 DOM 1  

Read-only  

Returns a zero-based integer representing the position of the current row among all other tr elements in the entire table. The count is based on the source code order of the tr elements.

 
Example
 
var whichRow = document.getElementById("myTR").rowIndex;
 
Value

Integer.

 
Default

None.


2150,Nickname,Homepage or email,Comments here,Add comment