HTML DOM Title オブジェクト
Title オブジェクト
Title オブジェクトは HTML <title> 要素を表します。
Title オブジェクトのアクセス
getElementById() を使用して <title> 要素にアクセスできます:
var x = document.getElementById("myTitle");
Title オブジェクトの作成
document.createElement() メソッドを使用して <title> 要素を作成できます:
var x = document.createElement("TITLE");
Title オブジェクト属性
属性 | 説明 |
---|---|
text | ドキュメントのタイトルテキストを設定または返します。 |
関連ページ
HTML リファレンスマニュアル:HTML <title> タグ