td/th cellIndex property
td/th object
Definition and Usage
The cellIndex property can return the position of a cell within the collection of cells in a row.
Syntax
Return the cellIndex property:
tdObject.cellIndex
or
thObject.cellIndex
Tip: The cellIndex property has no default value.
Browser support





All major browsers support the cellIndex property
Example
Example
Pop up the position of the cell (cellIndex):
| Click to display the cell index | Click to display the cell index |
Try it »
td/th object