Javascript Reference
Categories: TD

javascript TD cellIndex

@June 1, 2008, 3:10 p.m.
cellIndex Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read-only  

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

 
Example
 
var whichCell = document.getElementById("myTD").cellIndex;
 
Value

Integer.

 
Default

None.


Powered by Linode.