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