每15分钟 - 定时器在浏览器中刷新HTML页面将自动 [英] Refresh HTML Page in Browser Automatically on Timer - Every 15 Min

查看:310
本文介绍了每15分钟 - 定时器在浏览器中刷新HTML页面将自动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时能够自动更新网站上的计时器,像每15分钟?基本上,我们将进行更新,以一个网站,我们希望它会自动刷新,以便它会显示在其上从不同的计算机控制的大显示器,我们有。

Is it possible to automatically refresh a website on a timer, like every 15 minutes? Basically, we will be making updates to a website and we want it to automatically refresh so it will show up on a big monitor we have which is controlled from a different computer.

因此​​,而不是去其他电脑点击刷新更改时,它只是自动刷新,所以我们可以有保留起来。

So instead of going to that other computer to click refresh when changes are made, it would just automatically refresh so we can keep it up there.

谢谢!

推荐答案

把这个放在< HEAD> 900秒后刷新页面:

Place this inside <head> to refresh page after 900 seconds:

<meta http-equiv="refresh" content="900"> <!-- Refresh every 15 minutes -->

有关它的价值,在 W3C已经pcated此功能,但是浏览器继续支持此功能。你的目的,这是一个理想的解决方案。这只是不是公共(WWW)-facing网站建议的解决方案了。

For what it's worth, the w3c has officially deprecated this feature, but browsers continue to support this feature. For your purposes, this is an ideal solution. It's just not a recommended solution for "public" (www)-facing web sites any more.

这篇关于每15分钟 - 定时器在浏览器中刷新HTML页面将自动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆