<iframe>标签装载的子页面?
parent.location.reload();
就可以了

解决方案 »

  1.   

    把子页面做成100%宽高iframe的框架页面,iframe中放实际的子页面内容
    刷新父页面时用 window.parent.opener.location.reload();
      

  2.   

    如果只是在子页面关闭的时候才刷新父页面。还有更简单的方法
    父页面var nw = window.open("http://www.baidu.com/");
    function closedis()
    {
    if(nw.closed)
    window.location.reload();
    else
    setTimeout(closedis,1000);
    }
    closedis();
    子页面什么代码都不用写
      

  3.   

    var result=openModal("修改信息","bcmOperationChapterAction!editBcmOperationChapter.action?objId="+id,'<%=path%>');                                        
         if(result=='1'){                                                                                                                         
        frm.returnStatus.value='correct';                                                                                                       
        frm.aspect.value='edit';                                                                                                                
        submitForm('${pageModel.pageNo}')                                                                                                        
        }     
              function submitForm(val){
    try{
    frm["page.pageNo"].value=val;}catch(e3){}
    frm.submit();
    }       给你个列子,在子页面关闭的时候返回一个值
      

  4.   


    多谢这位仁兄,经过我思考改良得出解决方案:
    //对所在页面的弹出窗口进行监控,当关闭时刷新本页面
    function closedRefresh(nw){
        if(nw.closed){
            window.location.reload();
    }
        else{
    setTimeout(function() { 
    timmer=setInterval(closedRefresh(nw),1000);  
    }, 0)
    }
    }
    //用JS打开新窗口,并监控窗口有无关闭
    function openNewPageDetect(url){
    var newWin = window.open(url,"_blank");
    closedRefresh(newWin);
    }<a href="javascript:openNewPageDetect('http://www.baidu.com')">打开新窗口</a>
      

  5.   

    我那只是随手打的例子,你别一上来就自动打开子窗口啊<script type="text/javascript">
    var nw;
    function closedis()
    {
    if(nw.closed)
    {
    alert("子窗口关闭了");
    window.location.reload();
    }
    else
    setTimeout(closedis,1000);
    }function openwin()
    {
    nw = window.open("http://www.baidu.com/");
    closedis();
    }
    </script>
    <input type="button" value="打开窗口" onclick="openwin()" />
      

  6.   

    在子窗口
    self.parent.location.reload();