Table tHead-eigenschap

Definitie en gebruik

tHead De eigenschap retourneert een verwijzing naar het <thead>-element van de tabel.

Het <thead>-element wordt gebruikt om de titelinhoud van de HTML-tabel te groeperen.

Tip:De tFoot-eigenschap retourneert een verwijzing naar het <tfoot>-element van de tabel.

Zie ook:

HTML referentiemanual:HTML <thead> tag

Voorbeeld

Output de innerHTML van <thead>:

alert(document.getElementById("myTable").tHead.innerHTML);

Try it yourself

Syntax

tableObject.tHead

Technical details

Return value: Reference to the <thead> element of the table; if undefined, it is null.

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support