Syntax
location.replace(URL)
The replace() method loads a new page, specified by URL, in the current browser window.
The new page replaces the previous page's position in the history list.
Using the replace method of the Location object