Table tHead Attribute
Definition and Usage
tHead
The attribute returns a reference to the table's <thead> element.
The <thead> element is used to group the header content of an HTML table.
Tip:The tFoot attribute returns a reference to the table's <tfoot> element.
See also:
HTML Reference Manual:HTML <thead>-etikett
Example
Output the innerHTML of <thead>:
alert(document.getElementById("myTable").tHead.innerHTML);
Syntax
tableObject.tHead
Tekniska detaljer
Returvärde: | En referens till tabellens <thead>-element; om det inte är definierat, är det null . |
---|
Webbläsarstöd
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Stöd | Stöd | Stöd | Stöd | Stöd |