Set or obtain the "file name" or path specified by the object.
<script>
Alert (Window.Location.PathName)
</script>
Set or get the entire URL as a string.
<script>
alert (window.location.href);
</script>
Set or get the port number associated with the URL.
<script>
Alert (Window.Location.Port)
</script>
Set or get the protocol part of the URL.
<script>
Alert (Window.Location.protocol)
</script>
Set or get the segments behind the well "#" in the HREF attribute.
<script>
Alert (window.location.hash)
</script>
Set or get the hostname and port number of Location or URL.
<script>
alert (window.location.host)
</script>
Set or obtain the part of the question mark in the HREF attribute.
<script>
Alert (Window.Location.search)
</script>
Web page refresh recommendation -js
<input type = Button value = refresh onClight = "history.go (0)">
<input type = Button value = refresh onClick = "locally.reload ()">
<input type = Button value = refresh onClick = "location = local">>
<input type = Button value = refresh onClight = "localization.assign (local)">
<input type = Button value = refresh onClick = "document.execcommand ('refresh')">>
<input type = Button value = refresh onClight = "Window.navigate (LOCATION)">
<input type = Button value = refresh onClick = "location.replace (local)">
<input type = Button value = refresh onClick = "document.url = location.href">