网页代码跳转和刷新

一、

<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

posted @   study_php_java_C++  阅读(325)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示