-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
71 lines (51 loc) · 1.02 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: "HTMLTableElement: deleteTFoot() メソッド"
short-title: deleteTFoot()
slug: Web/API/HTMLTableElement/deleteTFoot
l10n:
sourceCommit: 595cba0e07c70eda7f08a12890e00ea0281933d3
---
{{APIRef("HTML DOM")}}
**`HTMLTableElement.deleteTFoot()`** は、 {{HTMLElement("tfoot")}} 要素をこの {{HtmlElement("table")}} から取り除きます。
## 構文
```js-nolint
deleteTFoot()
```
### 引数
なし。
### 返値
なし ({{jsxref("undefined")}})。
## 例
この例は、 JavaScript を使用して表のフッターを削除します。
### HTML
```html
<table>
<thead>
<th>名前</th>
<th>スコア</th>
</thead>
<tr>
<td>Bob</td>
<td>541</td>
</tr>
<tr>
<td>Jim</td>
<td>225</td>
</tr>
<tfoot>
<th>平均</th>
<td>383</td>
</tfoot>
</table>
```
### JavaScript
```js
let table = document.querySelector("table");
table.deleteTFoot();
```
### 結果
{{EmbedLiveSample("Examples")}}
## 仕様書
{{Specifications}}
## ブラウザーの互換性
{{Compat}}