常用js页面跳转方式
window.location.href="target.aspx"; window.navigate("target.aspx");self.location='target.aspx';top.location='target.aspx'; alert("返回");
window.history.back(-1);if (typeof SWFObject == "undefined") {
document.write('<scr' + 'ipt type="text/javascript" src="/scripts/swfobject-1.5.js"></scr' + 'ipt>');
}history.go(0)
location.reload()
location=location
location.assign(location)
document.execCommand('Refresh')
window.navigate(location)
location.replace(location)
document.URL=location.hrefLast updated
Was this helpful?