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 title content in an HTML table.
Tip:The tFoot attribute returns a reference to the table's <tfoot> element.
See also:
HTML Reference Manual:HTML <thead> tag
Example
Output the innerHTML of <thead>:
alert(document.getElementById("myTable").tHead.innerHTML);
Syntaks
tableObject.tHead
Tekniske detaljer
Returværdi: | Henvisning til tabellens <thead> element; hvis det ikke er defineret, er det null . |
---|
Browserstøtte
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |