'cells' Example : cells « Javascript Collections « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Collections » cells 




'cells' Example

    
<html>
<body>
<table id="myTable" border="1">
    <tr id="myRow">
        <td>Cell 1</td>
        <td>Cell 2</td>
    </tr>
    <tr>
        <td>Cell 3</td>
        <td>Cell 4</td>
    </tr>
</table>
<button onclick="alert(myTable.cells.length);">Length of table</button>
<button onclick="alert(myRow.cells.length);">Length of row</button>
</body>
</html>

    
      
      














Related examples in the same category
1.'cells' Syntax Parameters and Note
2.'cells' JavaScript properties and JavaScript methods
3.'cells' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.