网页代码跳转和刷新
一、
<frameset framespacing="0" border="0" rows="0" frameborder="0">
<frame name="main" src="new site" scrolling="auto" noresize>
</frameset>
二、
<meta http-equiv="refresh" content="5;url=http://www.bjqxwh.com/" />
三、JS跳转页面参考代码
第一种:
<script language="javascript" type="text/javascript">
window.location.href="login.jsp?backurl="+window.location.href;
</script>
第二种:
<script language="javascript">
alert("返回");
window.history.back(-1);
</script>
第三种:
<script language="javascript">
window.navigate("top.jsp");
</script>
第四种:
<script language="JavaScript">
self.location='top.htm';
</script>
第五种:
<script language="javascript">
alert("非法访问!");
top.location='xx.jsp';
</script>
<script language="javascript">
window.open("http://www.xx.net"); //在另外新建窗口中打开窗口
</script>
刷新页面
1,history.go(0)
2,location.reload()
3,location=location
4,location.assign(location)
5,document.execCommand('Refresh')
6,window.navigate(location)
7,location.replace(location)
8,document.URL=location.href