現在のURLに関する情報。
ancestorOrigins=[object]:[object DOMStringList]
href=[string]:file:///C:/Users/asmin/Documents/%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3%E9%96%A2%E4・・・
origin=[string]:file://
protocol=[string]:file:
host=[string]:
hostname=[string]:
port=[string]:
pathname=[string]:/C:/Users/asmin/Documents/%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3%E9%96%A2%E4%BF%82/・・・
search=[string]:
hash=[string]:
assign=[function]:function assign() { [native code] }
reload=[function]:function reload() { [native code] }
replace=[function]:function replace() { [native code] }
toString=[function]:function toString() { [native code] }
表示内容: |
表示内容: |
location.assign(URL)
URL | 読み込む URL。 |
location.reload(〔①〕)
① | サーバーから読み込み。true|false (キャッシュから読み込み)。 |
location.replace(URL)
URL | 置き逢え後の URL。 |