onunload="window.opener.document.location.reload();"

解决方案 »

  1.   

    1:怎么实现模态弹出窗口;
    window.showModalDialog(url, this, "dialogHeight:548px;dialogWidth:708px;center:yes;status:no;resizable:no;"); 2:弹出窗口关闭之后,怎么样通知父窗口刷新
    上面参数传了this指的的父窗口,这里就可以这样用
    window.dialogArguments.location.reload();
    或者window.opener.location.reload();
    也可以执行父窗口的脚本:
    假设父窗口有一个function test(a,b);
    可以这样调用:
    var sc="test(\"参数a\",\"参数b\")";
    window.dialogArguments.execScript(sc,"javascript")
    window.opener..execScript(sc,"javascript")
      

  2.   

    http://www.csdn.net/Develop/read_article.asp?id=15113