<script>
if(top.location.href=="http://路径/main.php")top.location.href="http://路径"
</script>

解决方案 »

  1.   

    //把这个加如你不详作为顶级显示的页面
    <script>
    if(top.location==self.location) top.location="http://路径/";
    </script>
      

  2.   

    //把这个加如你不详作为顶级显示的页面
    <script>
    if(top.location==self.location) top.location="http://路径/";
    </script>
      

  3.   

    谢谢,好象可以了,不过现在还有个问题,我用
    <A href="javascript:;" 
                      onclick="MM_openBrWindow('xx.htm','','width=600,height=500')">
    显示
    </a>
    点击的时候在页面没下载完的时候上面会显示这个'xx.htm'文件的路径和文件名,下载完了才显示<title>查看</title>标题
    有没有办法屏蔽掉那个地址,直接显示标题或什么都不显示呢