1, in the original form by direct jump:
// Use the href attribute method Jump
window.location.href="http://www.baidu.com"(最常用)
// use the assign () method Jump
window.location.assign("http://www.baidu.com");
// use replace () method Jump (no history)
window.location.replace ( "http://www.baidu.com");
// call the window of the open property
http://www.baidu.com / / a tag jump <a href=" http://www.baidu.com "target="_self"> open Baidu </a>onclick="window.open('
','_self');"
2, open the page in a new form:
window.open('http://www.baidu.com')"
<a href="http://www.baidu.com
"
target="_blan
k");"></a>
wi
ndow.open("
http://www.baidu.com",
target="_blan
k");
3, Back (possible local test is not valid, available on the server)
window.history.go (-1); (most common)
window.history.back();
4, forward
window.history.forwary();
5, refresh the page
window.location.reload();