Window.location Index Page 1

Javascript: How to set/get current URL?

Learn how to change the current url using javascript. Also learn how to get the current URL. We will explain the location object with more details, this object allows to change the query, hostname, port and more without parsing the url.