The HTMLTableElement.deleteTFoot()
method removes the <tfoot>
element from a given <table>
.
Syntax
HTMLTableElement.deleteTFoot();
Example
This example uses JavaScript to delete a table's footer.
HTML
<table> <thead><th>Name</th><th>Score</th></thead> <tr><td>Bob</td><td>541</td></tr> <tr><td>Jim</td><td>225</td></tr> <tfoot><th>Average</th><td>383</td></tfoot> </table>
JavaScript
let table = document.querySelector('table'); table.deleteTFoot();
Result
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of 'HTMLTableElement: deleteTFoot' in that specification. | Living Standard |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deleteTFoot
|
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox
Full support Yes |
IE
Full support Yes |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
? |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
? |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
HTMLTableElement.deleteTFoot() by Mozilla Contributors is licensed under CC-BY-SA 2.5.