- 打开自定义对话框,执行完毕后关闭对话框并刷新父页面。
window.top.showDialog(url,550,300,'对话框名称'); //打开一个自定义对话框;
window.top.closeDialog(); //关闭对话框;
window.top.g("url"); //刷新父页面;
2. window.location 跳转页面
self.location.href="/url" 当前页面打开URL页面
location.href="/url" 当前页面打开URL页面
windows.location.href="/url" 当前页面打开URL页面,前面三个用法相同。
this.location.href="/url" 当前页面打开URL页面
parent.location.href="/url" 在父页面打开新页面
top.location.href="/url" 在顶层页面打开新页面