Name

cellIndex — NN n/a IE 4 DOM n/a

Synopsis

Read-only

Returns a zero-based integer representing the position of the current cell among all other TH elements in the same row. The count is based on the source code order of the TH elements within a TR element. This property is not available in the Macintosh version of Internet Explorer 4.

Example

var whichCell = document.all.myTH.cellIndex

Value

Integer.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.