javascript跳转:
1 2 3 4 5 6 |
<input type="button" value="刷新" onclick="window.location.reload()"> <input type="button" value="前进" onclick="window.history.go(1)"> <input type="button" value="后退" onclick="window.history.go(-1)"> <input type="button" value="前进" onclick="window.history.forward()"> <input type="button" value="后退" onclick="window.history.back()"> <input type="button" value="后退+刷新" onclick="window.history.go(-1);window.location.reload()"> |
Javascript刷新页面:
1 2 3 4 5 6 7 8 |
history.go(0) location.reload() location=location location.assign(location) document.execCommand('Refresh') window.navigate(location) location.replace(location) document.URL=location.href |