'summary' Example : summary : Table : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP


JavaScript DHTML  »  Table   » [  summary  ]   
 



'summary' Example

Please note that some example is only working under IE or Firefox.

    
<html>
<body>
<script language="JavaScript">
function function1() {
    document.all.myTable.summary = "Table Contains 4 cells";
}
</script>
<table id="myTable" width="542" border="3" cellspacing="5" cellpadding="5">
    <tr>
        <th>Header content</th>
        <th>Header content</th>
    </tr>
    <tr>
        <td>Cell content</td>
        <td>Cell content</td>
    </tr>
</table>
<button onclick="function1();">Add Summary</button>
<button onclick="alert(document.all.myTable.summary);">View Summary</button>
</body>
</html>

    
      
      
Related examples in the same category
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.