我在模态窗口的body里写onunload="window.opener.location.reload();"
结果说window.opener.location为空,是因为opener不能用到模态窗口的吧?

解决方案 »

  1.   

    window.showModalDialog("test2.htm",window)onclick="window.dialogArguments.location.reload()" value="刷新"
      

  2.   

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

  3.   

    在模态窗口里写<body onunload="window.dialogArguments.location.reload();">
    还是提示window.dialogArguments.location为空或不是对象啊
    //=======
    我现在是在模态窗口里有个
    <iframe name="ImgSetFrm" frameborder=0 width=0 height=0 scrolling=no></iframe>
    提交的时候是ImgSetFrm.location.href=URL; 成功后会window.close()的。然后就提示出错了:(
      

  4.   

    嘿嘿,终于成功了,万分感谢net_lover(孟子E章)啊
    //=========
    我原来window.showModalDialog("pc_img.php?UsrNo="+UserI+"&UsrName="+UsrName,window,"status:0....
    的时候,没把第二个window传进去 :$