A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTHead below:

HTMLTableElement: deleteTHead() method - Web APIs

HTMLTableElement: deleteTHead() method

Baseline Widely available

The HTMLTableElement.deleteTHead() removes the <thead> element from a given <table>.

Syntax Parameters

None.

Return value

None (undefined).

Examples

This example uses JavaScript to delete a table's header.

HTML
<table>
  <thead>
    <th>Name</th>
    <th>Occupation</th>
  </thead>
  <tr>
    <td>Bob</td>
    <td>Plumber</td>
  </tr>
  <tr>
    <td>Jim</td>
    <td>Roofer</td>
  </tr>
</table>
JavaScript
let table = document.querySelector("table");
table.deleteTHead();
Result Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3