Javascript Reference
Categories: TR

javascript TR rowIndex

@March 15, 2008, 1:22 a.m.
rowIndexFirefox/Netscape/NN 6 IE 4 Chrome/Safari/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.


Powered by Linode.