Create Table Foot : Table Foot : Table : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP


JavaScript DHTML  »  Table   » [  Table Foot  ]   
 



Create Table Foot

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

    
<html>
<body>
<script language="JavaScript">
function function1() {
   var m = document.all.myT.createTFoot();
   m.bgColor = 'red'; 
}
function function2() {
   var n = document.all.myT.createTHead();
   n.bgColor = 'yellow'; 

</script>
<table id="myT">
    <thead id="th">
        <tr>
            <th>Cell 1</th>
            <th>Cell 2</th>
        </tr>
    <tfoot id="tf">
        <tr><td>Cell 3</td>
            <td>Cell 4</td>
        </tr>
</table>
<input type="button" value="Create tfoot" onclick="function1();">
<input type="button" value="Create thead" onclick="function2();">
</body>
</html>

    
      
      
Related examples in the same category
1.  'tFoot' Example
2.  Delete Table Foot
























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