Table deleteTFoot() Method
Definition and Usage
deleteTFoot()
Method to remove from the table <tfoot> Element(and its content).
Tip:To create a new <tfoot> element for the table, use createTFoot() Method.
See also:
HTML Reference Manual:HTML <tfoot> Tag
Example
Example 1
Remove <tfoot> element from the table:
document.getElementById("myTable").deleteTFoot();
Example 2
Create and delete <tfoot> elements:
function myCreateFunction() { var table = document.getElementById("myTable"); var footer = table.createTFoot(); var row = footer.insertRow(0); var cell = row.insertCell(0); cell.innerHTML = "<b>This is a table footer</b>"; } function myDeleteFunction() { document.getElementById("myTable").deleteTFoot(); }
Syntax
tableObject.deleteTFoot()
Parameters
None.
Return Value:
No Return Value.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |