HTMLTableElement.deleteTFoot()

Вы читаете английскую версию этой статьи, так как пока нет перевода на данный язык. Помогите нам перевести эту статью!

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

Specification

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
deleteTFootChrome Full support YesEdge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown