diff options
Diffstat (limited to 'files/ja/web/api/htmltableelement/createthead/index.html')
| -rw-r--r-- | files/ja/web/api/htmltableelement/createthead/index.html | 27 |
1 files changed, 27 insertions, 0 deletions
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 +--- +<div> + {{ ApiRef() }}</div> +<h2 id="Summary" name="Summary">概要</h2> +<p><b>createTHead</b> は、テーブル内に新たに {{htmlelement("thead")}} 要素を生成します。</p> +<h2 id="Syntax" name="Syntax">構文</h2> +<pre class="syntaxbox"><i>HTMLElementObject</i> = table.createTHead()</pre> +<h2 id="Example" name="Example">例</h2> +<pre class="brush:js">var mytable = document.getElementById("mytable"); + +var myhead = mytable.createTHead(); + +//チェック用コード: myhead == mytable.tHead</pre> +<h2 id="Notes" name="Notes">注記</h2> +<p>既にテーブル内に thead 要素が存在した場合、このメソッドはその thead 要素を返します。</p> +<h2 id="Specification" name="Specification">仕様書</h2> +<ul> + <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-70313345">createTHead</a></li> +</ul> |
