Table tHead Property
Example
Alert the innerHTML of <thead>:
alert(document.getElementById("myTable").tHead.innerHTML);
Try it Yourself »
Description
The tHead property returns a reference to the <thead> element of a table.
The <thead> element is used to group the header content in an HTML table.
Tip: The tFoot property returns a reference to the <tfoot> element of a table.
Browser Support
Property | |||||
---|---|---|---|---|---|
tHead | Yes | Yes | Yes | Yes | Yes |
Syntax
tableObject.tHead
Technical Details
Return Value: | A reference to the <thead> element of the table, or null if it is not defined |
---|
Related Pages
HTML reference: HTML <thead> tag
❮ Table Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.