DOM

HTMLTableElementインターフェイス

caption プロパティ

  編集:2022.03.11 by T.A.

MS

table 要素のキャプションを返します。設定も可能。

構文
string = table.caption
table ¶table 要素。

¶String→HTMLTableCaptionElement

if (table.caption) {
    // do something with the caption
}

テスト
HTML:

ここに表示
スクリプト組み込み:



スクリプト:


スクリプト:



表示内容:
表示内容: