可以这样写,如果还想关闭当前窗口<script>
window.close();
location.href="";
opener.location.reload();</script>

解决方案 »

  1.   

    谢谢,但是在执行doupload.jsp时还要传个参数filepath_id
    给上面那个Frame patch.jsp,这样才能够同步更新。
    怎么传参数呢?
    用 action=patch.jsp?filepath_id是不行的,
    还有别的方法吗?
      

  2.   

    <script>parent.parent.window.opener.framesname.location.href='patch.jsp?'+<%=filepath_id%>;
    window.close();
    </script>
      

  3.   

    edit.htm
    <frameset rows="30,*">
       <frame name="editArea" src="editArea.jsp"> 文本
       <frame name="path" src="patch.jsp">        上传文件
    </frameset>
    操作select.html建议使用showModalDialog 
    两个frame之间的操作关系
    假设path.jsp里有一个按钮,
    <input type=Button value="pathButton" onClick="test()">
    <script>
    function test(){
    top.editArea.location.reload();
    }
    </script>
    在editArea.jsp里也一样的
    top.path.location.reload()
      

  4.   

    楼上的前辈们,
    假若path.jsp里面没有那个点了以后刷新的按钮,
    现在想让文件上传后就patch.jsp就自动 reload而不需按钮.怎么半呢,谢谢