Baseline Widely available
The HTMLTableElement.deleteTHead()
removes the <thead>
element from a given <table>
.
None.
Return valueNone (undefined
).
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