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

        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>

你可能感兴趣的:(模态对话框)