"cells" Example
<source lang="javascript">
<html>
<body>
Cell 1 |
Cell 2 |
Cell 3 |
Cell 4 |
<button onclick="alert(myTable.cells.length);">Length of table</button>
<button onclick="alert(myRow.cells.length);">Length of row</button>
</body>
</html>
</source>
"cells" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+
| Applied_To |
|
+----------------+--------------------------------------------------------------+
</source>
"cells" JavaScript properties and JavaScript methods
<source lang="javascript">
JavaScript properties and JavaScript methods
item(), length, namedItem(), tags(), urns()
</source>
"cells" Syntax Parameters and Note
<source lang="javascript">
Note:
Returns an array of all cells in a or element.
Syntax:
document.all.elementID.cells // returns all cells
document.all.elementID.cells(param1, param2) // returns an individual cell
param1 Required; zero-based index or
the value of the desired member"s id or name attribute.
param2 Optional; zero-based index for the result returned
if param1 matches more than one element.
</source>