1、self.loaction.href="/具体路径"
2、location.href="/具体路径"
3、windows.loaction.href="/具体路径"
4、this.loaction.href="/具体路径"
parent.location.href="/具体路径"
top.location.href="/具体页面"
window.location.reload()
使用该方法刷新页面时,如果有数据待提交,会提示是否提交
如果页面中自定义了frame,则可将parent self top自定义为自己想要的名称
效果分别是在父页面、当前页面、顶层页面打开新页面
document.referer(可通过该方法获取跳转链接)
window.stop()
window.location.href=window.location.href
window.close()
此时是window后不加窗口归属,默认self属性,表示当前窗口
另一类比案例:window.parent.close()表示关闭父窗口
该方法不弹出系统提示,直接关闭