HTMLTableElement: deleteTHead() メソッド
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
構文
js
deleteTHead()
引数
なし。
返値
なし (undefined
)。
例
この例は、 JavaScript を使用して表のヘッダーを削除します。
HTML
html
<table>
<thead>
<th>名前</th>
<th>職業</th>
</thead>
<tr>
<td>Bob</td>
<td>配管工</td>
</tr>
<tr>
<td>Jim</td>
<td>屋根職人</td>
</tr>
</table>
JavaScript
js
let table = document.querySelector("table");
table.deleteTHead();
結果
仕様書
Specification |
---|
HTML # dom-table-deletethead-dev |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deleteTHead |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.