'headers' Example : headers « Javascript Properties « JavaScript Reference

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

'headers' Example

function function1() {
    document.getElementById("td1").headers = "hdr1";
    document.getElementById("td2").headers = "hdr2";
    document.getElementById("td3").headers = "hdr3"

<table width="450" border="1">
    <th id="hdr1">Item Number</th>
    <th id="hdr2">Item Name</th>
    <th id="hdr3">Item Description</th>
    <td id="td1">28030</td>
    <td id="td2">Computer</td>
    <td id="td3">Intel</td>
<input type="Button" id="b1" value='Turn Headers "on"' onClick="function1();">


Related examples in the same category
1.'headers' Syntax and Note
2.'headers' 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.