(リンク) location |
          |
ドキュメントのロケーションを参照または設定します |
- 書式
- document.location
- document.location = ◆
- ◆=URL
- 文例
- myURL = document.location
- document.location = "test.html"
- 上位オブジェクト
- document
- 説明
- ドキュメントのロケーション(URL)を参照または設定します。ロケーションを設定するには「document.location.href=アドレス」のようにhrefを使用する事もできます。
- 関連
anchors,
area,
links,
location,
anchor,
link,
href,
URL