window.location.replace see if working code example Example: window replace url location.replace("url");