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