how to go back from a hosted file to a local file location replace html5 code example Example: window replace url location.replace("url");