如果你的网站 和ad.htm 是属于同一域名的话,可以试下:
window.header.src="你想要的页"

解决方案 »

  1.   

    问题是我的网站和ad.htm不是一个域名下的!他们连我们的网址,在网页上方做广告
      

  2.   

    try
    window.frames["header"].height = 0;
      

  3.   

    在自己的网页中加
    <script>
    if(top.location=self.location){
      top.location<>self.location
    }
    </script>
      

  4.   

    top.location<>self.location 改 top.location != self.location
      

  5.   

    <script language="javascript">
    window.onload = function(){
    parent.document.getElementsByTagName("frameset")[0].rows = "0,*";
    }
    </script>
    这样子也可以哦。
      

  6.   

    to  keaizhong(可爱钟):我也试了你的方法,很奇怪的是,在我这里就行,在他们那还是不行。下面这样就哦卡了:)多谢楼上各位
    if(top.location!=self.location){
      top.location= self.location
    }