Window location.replace() method – Explained
The window location.replace() method replaces the current document(page) with the new one at the specified URL.
The window location.replace() method replaces the current document(page) with the new one at the specified URL.