惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - 黑色泥土

FSO操作指南 将网站全部下载下来的ASP代码 ASP生成静态页面的方法 Javascript操作Excel总结 移除节点时候IE与FireFox的不同 Javascript的IE和Firefox兼容性汇编 添加数据要顺着来,删除数据要反着去。 无法打开本地安全策略的症状及解决 CSS中渐变背景的使用以及注意事项 指定CodePage类型,强制解决数据库查询乱码问题 IE中子栏目使用float属性后背景不能正常显示原因及解决 使用UL 列表结构建立横向导航栏需要注意的问题 制作一个漂亮的提示框 网页CSS样式表设计十条技巧 IE与FireFox对CSS支持不足问题汇总之二 IE与Firefox的CSS兼容大全 浩方平台暗藏木马! IE与FireFox对CSS支持不足问题汇总之一 FireFox网页布局时候内容需自动换行时float属性不起作用
页面刷新方法汇总
黑色泥土 · 2007-05-14 · via 博客园 - 黑色泥土

转自:未知 

自动刷新页面的实现方法总结:

1)

10表示间隔10秒刷新一次
2)
<script>
window.location.reload(true);
</script>
如果是你要刷新某一个iframe就把window给换成frame的名字或ID号
3)
<script>
window.navigate("本页面url");
</script>
4>

function abc()
{
window.location.href="/blog/window.location.href";
setTimeout("abc()",10000);

刷新本页:
Response.Write("<script>window.location.href=window.location.href;</script>")

刷新父页:
Response.Write("<script>opener.location.href=opener.location.href;</script>")

转到指定页:
Response.Write("<script>window.location.href='yourpage.aspx';</script>")


刷新页面实现方式总结(HTML,ASP,JS)
'by aloxy

定时刷新:
1,<script>setTimeout("location.href='url'",2000)</script>

说明:url是要刷新的页面URL地址
2000是等待时间=2秒,

2,

说明: 
n is the number of seconds to wait before loading the specified URL. 
url is an absolute URL to be loaded. 
n,是等待的时间,以秒为单位
url是要刷新的页面URL地址

3,<!--sponse.redirect ur-->

说明:一般用一个url参数或者表单传值判断是否发生某个操作,然后利用response.redirect 刷新。

4,刷新框架页
  〈script language=javascript>top.leftFrm.location.reload();parent.frmTop.location.reload(); 弹出窗体后再刷新的问题

Response.Write("<script>window.showModalDialog('../OA/SPCL.aspx',window,'dialogHeight: 300px; dialogWidth: 427px; dialogTop: 200px; dialogLeft: 133px')</script>");//open
            Response.Write("<script>document.location=document.location;</script>");

在子窗体页面代码head中加入

刷新的内容加在   if (!IsPostBack) 中

在框架页中右面刷新左面 
   //刷新框架页左半部分
   Response.Write("<script>");
   Response.Write("parent.left.location.href='PayDetailManage_Left.aspx'");
   Response.Write("</script>");

页面定时刷新功能实现

有三种方法:
1,在html中设置:
之後加入下面这一行即可! 
定时刷新: 
10代表刷新间隔,单位为秒

2.jsp
<!--esponse.setHeader("refresh","1");-->
 每一秒刷新一次

3.使用javascript:
<script>
setTimeout("self.location.reload();",1000);
<script>
一秒一次 

页面自动跳转:
1,在html中设置:
之後加入下面这一行即可! 
定时跳转并刷新: ,
其中20指隔20秒后跳转到http://自己的URL 页面。

点击按钮提交表单后刷新上级窗口

A窗口打开B窗口

然后在B里面提交数据至C窗口

最后要刷新A窗口

并且关闭B窗口

几个javascript函数

//第一个自动关闭窗口
<script>
<!--<br /> function clock(){i=i-1<br /> document.title="本窗口将在"+i+"秒后自动关闭!";<br /> if(i>0)setTimeout("clock();",1000);<br /> else self.close();}<br /> var i=2<br /> clock();<br /> //-->
</script> 

//第二个刷新父页面的函数

<script>
opener.location.reload();
</script>

//第三个打开窗口

<script>
function show(mylink,mytitle,width,height)
{mailwin=window.open(mylink,mytitle,'top=350,left=460,width='+width+',height='+height+',scrollbars=no')}
</script>