http://topic.csdn.net/u/20090226/17/19ff150a-e000-407d-a24b-d0ea88804999.html 查看吧

解决方案 »

  1.   

    window.opener.loaction=window.opener.loaction;
      

  2.   

    非模式子窗体,点查询时的方法内
    ......
    form.target="_parent";
    form.submit();
    window.close();模式子窗体,点查询时把检索条件传到父画面,父画面提交检索,刷新画面。
      

  3.   

    父页面
    <html>
    <body>
    <input type="text" value="1" id="t1">
    <input type="button" value="打开子窗口" onclick="openDialog()"><script language="javascript">
    function openDialog()
    {
    var sFeatures = "dialogWidth:600px; dialogHeight:400px;";
    var args = [window];
    window.showModalDialog("child.html", args, sFeatures);
    }

    function doRefresh()
    {
    t1.value = parseInt(t1.value) + 1;
    }
    </script>
    </body>
    </html>子页面
    <html>
    <body>
    <input type="button" value="关闭" onclick="doClose()"><script language="javascript">
    function doClose()
    {
    window.dialogArguments[0].doRefresh();
    self.close();
    }
    </script>
    </body>
    </html>
      

  4.   

    很清楚,请参考:http://topic.csdn.net/u/20090302/15/06394f83-e691-4438-b43a-427bca19152e.html4楼
      

  5.   

    window.opener.location.reload(); 
      

  6.   

    <html>
    <head>
    <script>
    var a;
    function clos(){
    if(a.closed)
    window.location.href=window.location.href;
    }</script>
    </head>
    <body>
    <input type='text' id='a' value='测试的时候把这里改了.' />
    <button onclick="a=window.open('test.html');setInterval('clos()',1000);">aaa</button>
    </body>
    </html>opener只能用在frame.如果用window.open的就无效了.
      

  7.   

    window.location.href=window.location.href;这样就可以
      

  8.   

    看你打开的窗口是什么类型的窗口。如果是模态窗口,关闭后刷新父窗口就简单了
    如:
    function addCCTV(){
    var url="*******";
    window.open(url,"DialogValue","width=600,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=0");
    window.location.reload(true);
    }如果打开的是非模态窗口刷新语句就要变了
    在父窗口中有如下代码
    function addCCTV(){
    var url="*******";
    window.open(url,"DialogValue","width=600,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=0");

    }子窗中onUnload执行一下代码 opener.window.search.submit();