关闭当前窗口 刷新页面 ...
window.parent.location.reload var index parent.layer.getFrameIndex window.name parent.layer.close index ...
2018-01-15 16:36 1 7053 推荐指数:
关闭当前窗口 刷新页面 ...
1.1 获取当前窗口索引,并关闭 1.2 刷新父页面; 2 自定义两个按钮执行不同的代码;默认情况下,按钮2会自动关闭当前窗口,需要执行 return false; ayer未封装的基本用法,执行子页面方法 ...
type - 基本层类型 类型:Number,默认:0 layer提供了5种层类型。可传入的值有:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层) layer.closeAll(); //关闭所有层 layer.closeAll(‘dialog’); //关闭 ...
谷歌浏览器和火狐浏览器存在兼容,不能使用下面三行代码进行常规浏览器关闭,会提示 Scripts may close only the windows that were opened by it (脚本只能关闭它所打开的窗口) 其他浏览器可以正常关闭 ...
window.location.href="about:blank"; window.close(); ...
一、JS实现关闭当前子窗口,刷新父窗口 JS代码如下: <script> function refreshParent() { window.opener.location.href = window.opener.location.href; window.close ...
window.opener=null; window.open('','_self'); window.close(); ...
...