HTMLTableElement.createTFoot()

The HTMLTableElement.createTFoot() method returns the <tfoot> element associated with the table, of type HTMLTableSectionElement. If there is no footer for this table, this methods creates it, then returns it.

Syntax

JavaScript
HTMLTableElement = table.createTFoot()

Example

JavaScript
myfoot = mytable.createTFoot(); 
//checking: myfoot == mytable.tFoot

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/createtfoot

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