页面自动跳转的方法:
1.<meta http-equiv="refresh" content="2; URL=http://www.qikoo.com">
2.<script>location='http://www.qikoo.com';</script>
3.<script>location.replace("http://www.qikoo.com")</script>
4.<script>window.setTimeout("location.href='http://www.qikoo.com'",3000);</script>
5.<script>location.assign('http://www.qikoo.com') ;</script>
6.<script>window.open('http://www.qikoo.com','_self'); </script>
7.<script>window.location ='http://www.qikoo.com'; </script>
8.<script> window.navigate('http://www.qikoo.com') ;</script>
9.<script>history.go(0); </script>
10.<script>window.location.reload() ;</script>
11.<script> document.execCommand('Refresh') ;</script>
12.<script> document.URL=location.href ;</script>
14.//PHP自带函数 Header("Location: http://www.qikoo.com");
15.//ASP自带函数<% response.redirect http://www.qikoo.com %>
不让框架包含:
<script> if(top.location != self.location)top.location=self.location;</script>
另:框架自动刷新
frame.html 由上(top.html)下(bottom.html)两个页面组成,代码如下:
< HTML >
< HEAD >
< TITLE > frame </ TITLE >
</ HEAD >
< frameset rows ="50%,50%" >
< frame name =top src ="top.html" >
< frame name =bottom src ="bottom.html" >
</ frameset >
</ HTML >
现在假设top.html (即上面的页面) 有七个button来实现对bottom.html (即下面的页面) 的刷新,可以用以下七种语句,哪个好用自己看着办了。
语句1. window.parent.frames[1].location.reload();
语句2. window.parent.frames.bottom.location.reload();
语句3. window.parent.frames["bottom"].location.reload();
语句4. window.parent.frames.item(1).location.reload();
语句5. window.parent.frames.item('bottom').location.reload();
语句6. window.parent.bottom.location.reload();
语句7. window.parent['bottom'].location.reload();