Javascript Properties JavaScript Reference

Note:
Read-only property. 
Returns the row number in the table.
    
Syntax:
    
document.getElementById("trID").rowIndex
document.all.trID.rowIndex // IE only