關閉當前窗口 刷新頁面 ...
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(); ...
...