JavaScript Reference/Javascript Properties/headers

Материал из Web эксперт
Перейти к: навигация, поиск

"headers" Example

   <source lang="javascript">
   

<html> <body> <script> function function1() {

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

} </script>

Item Number Item Name Item Description
28030 Computer Intel

<input type="Button" id="b1" value="Turn Headers "on"" onClick="function1();"> </body> </html>


     </source>
   
  


"headers" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<td> <th> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"headers" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Specifies a list of space-separated header cell identifiers.

Syntax:

document.getElementById("elementID").headers = value document.all.elementID.headers = value // IE only


     </source>