TH.cellIndex (Property)

A zero-based integer number that indicates the position of a <TH> cell within a <TR> row. This is effectively the horizontal column coordinate of a table header cell.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:-myTH.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:TD.cellIndex

Property attributes: