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

        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>
posted @ 2009-07-27 22:07  落叶潇潇雨  阅读(708)  评论(0编辑  收藏  举报