HTML DOM Figcaption 對象
- 上一頁 <fieldset>
- 下一頁 <figure>
Figcaption 對象
Figcaption 對象代表 HTML <figcaption> 元素。
訪問 Figcaption 對象
您可使用 getElementById() 來訪問 <figcaption> 元素:
var x = document.getElementById("myFigCap");
創建 Figcaption 對象
您可使用 document.createElement() 方法來創建 <figcaption> 元素:
var x = document.createElement("FIGCAPTION");
相關頁面
HTML 參考手冊:HTML <figcaption> 標簽
- 上一頁 <fieldset>
- 下一頁 <figure>