'summary' Example : summary : Table JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Table » summary »

 

'summary' Example



    
<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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Table
» summary