HTMLTableElement.createTHead()

The HTMLTableElement.createTHead()method returns the <thead> element association with the table, of type HTMLTableSectionElement. If there is no such element associated to the thable, this method creates it, then returns it.

Syntax

JavaScript
HTMLElementObject = table.createTHead()

Example

JavaScript
myhead = mytable.createTHead(); 
//checking: myhead == mytable.tHead

Specification

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/htmltableelement/createthead

API HTML DOM HTMLTableElement Method NeedsBrowserCompatibility NeedsSpecTable Reference Référence