Page overloading
True to force loading from the server
False first loaded from cache
Window.location.reload (TRUE);
Window.location.href, Self.location.href, Location.href is this page jump Parent.location.href is the previous layer of page jump Top.location.href is the outermost page of the jump
Window.history.forward () forward Window.history.back () back window.history.go (1) forward Window.history.go (-1) back
Window.location.href = "http://www.baidu.com";
Window.location.assign ("http://www.baidu.com");
Window.location.replace ("http://www.baidu.com");
Window.location.assign (URL): loads the new HTML document specified by the URL. The equivalent of a link to jump to the specified URL, the current page will be converted to new page content, you can click Back to return to the previous page.
Window.location.replace (URL): replaces the current document by loading the document specified by the URL, this method replaces the current window page, and the front and back two pages share a
window, so there is no back return to the previous page
Javascript--location.href's Jump