如何自动刷新iframe [英] how to refresh an iframe automatically
本文介绍了如何自动刷新iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一个iframe将自己刷新到指定的源路径。
I would like an iframe to refresh itself to the source path specified. What is the easiest way to do this inline with javascript?
谢谢,
推荐答案
如果您也许正在寻找一种在未启用JavaScript的情况下执行此操作的方法,并且可以修改iframe HTML,那么您可以将此重新加载代码添加到< head>
iframe HTML标签:
If you're also perhaps looking for a way of doing this without javascript enabled, and have access to modify the iframe HTML, then you could add this reload code to the <head>
tag of the iframe HTML:
<meta http-equiv="refresh" content="600">
这篇关于如何自动刷新iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文