关闭模态对话框后刷新父窗口

        var returnVal = window.showModalDialog(url,args,'dialogHeight: ' + height + 'px;dialogWidth:' + width + 'px;status:no;help:no;resizable:yes;scroll:yes;center:yes;');    

        if (returnVal=="True")  
        {  
            window.location.href=window.location.href;  
            window.location.reload();  
        } 

然后在打开的窗口中
<script>window.returnValue='True';window.close();</script>
作者:Jackhuclan
出处:http://jackhuclan.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/jackhuclan/p/1532443.html