Location Objects
Course- Javascript >
The location object contains information about the URL of the currently loaded page.
We can think of the page URL as a series of parts:
[protocol]//[hostname]:[port]/[pathname][search][hash]
Here’s an example URL: http://www.example.com:8080/tools/display.php?section=435#list
The list of properties of the location object includes data concerning the various parts of the URL. The properties are listed below