tHead property (table)
The thead element is used to create a header for tables.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read-only.
Possible values:
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the tHead property:
|
||||
<head> <script type="text/javascript"> function GetTHead () { var tableHead = document.getElementById ("myTable").tHead; alert (tableHead.innerHTML); } </script> </head> <body> <button onclick="GetTHead ();">Get the innerHTML of the THead!</button> <table id="myTable" border="1px"> <thead> <tr> <td>The contents of the THead element</td> </tr> </thead> <tbody> <tr> <td>First row.</td> </tr> </tbody> </table> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
Related pages:
External links:
User Contributed Comments