オブジェクトによって指定された「ファイル名」またはパスを設定または取得します。
<スクリプト>
アラート(window.location.pathname)
</script>
URL全体を文字列として設定または取得します。
<スクリプト>
alert(window.location.href);
</script>
URLに関連付けられたポート番号を設定または取得します。
<スクリプト>
アラート(window.location.port)
</script>
URLのプロトコル部分を設定または取得します。
<スクリプト>
アラート(window.location.protocol)
</script>
HREF属性の井戸「#」の背後にあるセグメントを設定または取得します。
<スクリプト>
アラート(window.location.hash)
</script>
ホスト名とポート番号の場所またはURLを設定または取得します。
<スクリプト>
アラート(window.location.host)
</script>
HREF属性の疑問符の一部を設定または取得します。
<スクリプト>
アラート(window.location.search)
</script>
Webページの更新推奨事項-js
<入力タイプ=ボタン値= onclight = "history.go(0)">
<入力タイプ=ボタン値= onclick = "locally.reload()">を更新
<入力タイプ=ボタン値= onclick = "location = local" >>
<入力タイプ=ボタン値= onclight = "locial.assign(local)">
<入力タイプ=ボタン値= onclick = "document.execcommand( 'reffresh')" >>
<入力タイプ=ボタン値= onclight = "window.navigate(location)">
<入力タイプ=ボタン値= onclick = "location.replace(local)">を更新
<入力型=ボタン値= onclick = "document.url = location.href">を更新