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