Javascript Properties JavaScript Reference

Note:
Read-only property. 
Returns the zero-based index of the cell in its row.
    
Syntax:
    
document.getElementById("elementID").cellIndex
document.all.elementID.cellIndex // IE only