javascript how to change window.location code example Example: window replace url location.replace("url");