例如:父窗口的叶面叫 Parent.html
你在弹出的窗口的响应事件中写
window.opener.location = "Parent.html";
即可!

解决方案 »

  1.   

    大哥哥们哟 是网页对话框啊 不是 window.open 啊
      

  2.   

    parent.htm:
    <script language="JavaScript">
    <!--
    alert("页面被加载");
    showModalDialog("aa.htm", window)
    //-->
    </script>aa.htm:
    <script language="JavaScript">
    <!--
    var w;
    if (window.dialogArguments != null)
    w = window.dialogArguments;
    //-->
    </script>
    <input type=button value=reload onclick="w.location.reload()">
      

  3.   

    if (window.dialogArguments != null)
    请问这一句是启什么作用呢?谢
      

  4.   

    判断 showModalDialog 的传入参数是否为空
      

  5.   

    不好意思,梅花大姐。(你是正确的)
    补充一点if (window.dialogArguments != null)
    if (null != window.dialogArguments && null!=window.dialogArguments.location)
    加以判断,万一有一个页面也showModalDialog("aa.htm",anotherObject)
    再w.location.reload()就问题了
      

  6.   

    啊真笨啊 用到了 window 传递参数就没想到 可以这样用 嘿嘿  谢谢咯 结贴