如何安排 IE 页面重新加载
有没有一种机制可以用来强制页面每“n”分钟重新加载一次?我无法修改页面代码本身,“刷新”请求应该从页面本身外部发出
Is there a mechanism i can use to force page reload every 'n' minutes? I can't modify the page code itself, "refresh" request should be issued from outside of the page itself
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这将每分钟刷新页面。如果您将其制作成greasemonkey的脚本,它将不断地被注入到页面中,并继续每分钟+加载时间执行一次。
另一种方法是按照建议将页面放入 iframe 中。例如
,这仅在 Chrome 中进行了测试,innerHTML 可能会给 IE 带来一些问题。 (虽然不确定)
That will refresh the page every minute. If you make it into a script for greasemonkey it will continually be injected into the page and keep executing every minute + load time.
ANother way is to, as suggested, put the page in an iframe. e.g.
That has only been tested in Chrome however, and innerHTML may pose some problems with IE. (not sure though)
您可以尝试将网站放入 iframe 中,并通过 Javascript 按设定的时间间隔刷新该网站。
对于更简单的解决方案,根据您的实际需求,我使用以下网站进行类似的操作:
http ://www.lazywebtools.co.uk/cycler.html
You could try putting the site within an iframe and refreshing that via Javascript at set intervals.
For a more simple solution, depending on your actual needs, I have used the following site for something similar:
http://www.lazywebtools.co.uk/cycler.html
蠕动效果很好。将“cnn.com”替换为您需要重新加载的页面,将“10”替换为间隔(以秒为单位)
The wollowing works well. Replace "cnn.com" with the page you need to reload and "10" with the interval in seconds
试试这个:
此方法将每 1 分钟后重新加载页面
Try this :
this method will reload the page after every 1 minute