window location replace with params code example Example: window replace url location.replace("url");