现在这个方案也不怎么好,window.open时没有把主页面屏蔽,还能继续操作主页面!!
firefox真讨厌

解决方案 »

  1.   

    模态窗口关闭刷新父窗口?这个没有直接的方法解决,你可以在模态窗口下回传一个returnValue,然后在父窗口判断returnValue的值location.reload();
      

  2.   

    function showDialog(url)
            {
                if( document.all)//IE  
                {  
                  feature="dialogWidth:300px;dialogHeight:200px;status:no;help:no";  
                  window.showModalDialog(url,null,feature); 
                  window.location.reload() 
                }  
                else  
                {                                    //modelessDialog可以将modal换成dialog=yes  
                  feature   ="width=300,height=200,menubar=no,toolbar=no,location=no,";  
                  feature+="scrollbars=no,status=no,modal=yes";    
                  window.open(url,null,feature); 
                  //这个在url里实现。if(window.opener) opener.location.reload()
                }   
            }
      

  3.   

    刷新当前页
    history.go(0)
    刷新后一页面
    history.go(-1)
    刷新前一页面
    history.go(1)
      

  4.   

    function NewCustomerInfo(id)
            {
                if (window.navigator.appVersion.indexOf("MSIE")!=-1)
                {
                    window.showModalDialog("/***/***?***="+id,"", "dialogWidth=600px;dialogHeight=600px;help:no;resizable:no;scroll:no;status:no;");
                }
                else
                {
                    window.open("/***/***.***?***="+id,"客户信息", "width=600px,height=600px,help=no,status=no,top=(window.screen.availHeight-30-iHeight)/2,left=(window.screen.availWidth-10-iWidth)/2");
                } 
            }  
    不是IE的话就用open