在ie上点击后退按钮,退到上一个我浏览的网页,问是否可以让这个网页自动刷新

1<meta content="300,url=head.asp" http-equiv="refresh"/>

300指的是刷新的间隔时间,单位是秒,所以不能设为零。
还有就是只能在服务器端设置。
要是想让别人的页面自动刷新,可能要在IE里INTERNET选项里设了!
---------------------------------------------------------------

你的设想的意思就是不读取本地缓存,每次强制从服务器上读取。
ASP头部加上:

1   
2Response.expires = 0   
3Response.expiresabsolute = Now() - 1   
4Response.addHeader "pragma", "no-cache"   
5Response.addHeader "cache-control", "private"   
6Response.CacheControl = "no-cache"   

如果是HTML文件,则直接加上:

1<meta content="no-cache" name="pragma"/>

单纯用

1<meta content="0; URL=http://www.csdn.net" http-equiv="Refresh"/>

刷新本页可是万万不可的哦!!!
因为这会导致页面不停刷新!!!

Published At
Categories with Web编程
Tagged with
comments powered by Disqus