用opener.location.reload();
为什么提示没有OPENER。LOCATION对象

解决方案 »

  1.   

    SHOWModalDialog模态窗口不关闭是不能对父窗口进行操作的!所以你在刷新主页面的话,等窗口关闭后再在主页面用location.reload();来刷新吧!!!
      

  2.   

    <!--1.html-->
    <script language="JavaScript">
    function showabout()
       
    {  var returnValue=showModalDialog('2.html',window,'dialogWidth:520px;dialogHeight:510px;help:no;center:yes;resizable:no;status:no;scroll:no');}  
    //void(0);
    </script>
    <a href="#" onClick="showabout()">open</a>
    注意里面的参数window,这是传递值。<!--2.html-->
    <body onUnload="window.dialogArguments.location.reload()">
    <img src="6/" width="271" height="32" onClick="javascript:window.dialogArguments.location.reload()" alt="刷新父窗体"></html>再注意一下弹出的窗体里是怎么写的。
      

  3.   

    modal实际上是类似于对话框的。所以不关闭是不能对父窗体进行操作的。
      

  4.   

    用opener.location.reload();
    为什么提示没有OPENER。LOCATION对象
      

  5.   

    <body onunload=window.opener.location.reload();>
      

  6.   

    应该是这样。
    <script language=JavaScript>
    alert("修改失败!");
    if(opener)   opener.location.reload(true);
     window.close();
    </script>
      

  7.   

    你试试 daby的办法,应该可以~可以变相的刷新呀,在关闭之前是不能对父窗口操作的