<script  type="text/javascript">
    var ie=document.all?1:0;
    var sss= window.location;
    if(ie){  
        if(window.top.document.all.content1==undefined)
  {
            window.opener.sss=sss + "";
            window.open("/n206250/n713396/width.html","_self");
        }
    }
</script>PS ,iframe在火狐下不显示

解决方案 »

  1.   

    var ie=document.all?1:0;
    楼主已经判断了,IE下面才会进你的if语句里面,firefox下当然不行了。
      

  2.   

    是啊,document.all是微软的定义标准,为什么要判断呢?
      

  3.   

    var ie=document.all?1:0
    ie下ie为1  所以你以后的if(ie)为真
    但你完全没考虑if(ie)为假的情况  所以只有ie能用了
      

  4.   

    遇到问题alert(XX)看看 是否是undefined
    学学用一些工具 IE//FF有不同的调试器 上网下载一下