From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../api/htmltableelement/createthead/index.html | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 files/ja/web/api/htmltableelement/createthead/index.html (limited to 'files/ja/web/api/htmltableelement/createthead') diff --git a/files/ja/web/api/htmltableelement/createthead/index.html b/files/ja/web/api/htmltableelement/createthead/index.html new file mode 100644 index 0000000000..b8b76999e2 --- /dev/null +++ b/files/ja/web/api/htmltableelement/createthead/index.html @@ -0,0 +1,27 @@ +--- +title: HTMLTableElement.createTHead +slug: Web/API/HTMLTableElement/createTHead +tags: + - DOM + - Gecko + - Gecko DOM Reference +translation_of: Web/API/HTMLTableElement/createTHead +--- +
+ {{ ApiRef() }}
+

概要

+

createTHead は、テーブル内に新たに {{htmlelement("thead")}} 要素を生成します。

+

構文

+
HTMLElementObject = table.createTHead()
+

+
var mytable = document.getElementById("mytable");
+
+var myhead = mytable.createTHead();
+
+//チェック用コード: myhead == mytable.tHead
+

注記

+

既にテーブル内に thead 要素が存在した場合、このメソッドはその thead 要素を返します。

+

仕様書

+ -- cgit v1.2.3-54-g00ecf