TD.cellIndex (Property)

A zero-based integer value that indicates the position of this cell within the row. This is the horizontal coordinate position of the cell within the table.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:-myTD.cellIndex

You can access cells by means of the rows[] and cells[] collections belonging to the TABLE and TR objects respectively. This property provides the horizontal coordinate to use in the TR.cells[] collection to access the object describing this table cell.


See also:TH.cellIndex

Property attributes: