自动刷新网页的iframe内容 [英] AutoRefresh iframe content of webpage

查看:75
本文介绍了自动刷新网页的iframe内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,希望自动刷新某些内容.

我目前正在使用:

I have a web page and wish to autorefresh some of the content.

I currently am using:

<meta http-equiv="refresh" content="60" > 



这会每分钟刷新整个页面,从功能上来说还可以.


但是,我在页面上有一个iframe,我只想自动刷新该iframe的内容.

最简单的方法是什么?



This refreshes the whole page every minute, which is functionally ok.


However I have an iframe on the page and it is only the content of this iframe that I want to auto refresh.

What is the simplest way to do this?

推荐答案

CG是正确的.另外,您也可以使用Javascript setTimeout,以便动态地刷新iframe
CG is right. Alternatively you may use Javascript setTimeout so dynamically you may refresh the iframe


Aha ...

感谢Thatraja对setTimeout的建议...

在这里 [
Aha...

Thanks to Thatraja for his suggestion of setTimeout...

Here[^] is where I found salvation after having the setTimeout pointer.


将代码放入iframe页面.
Put that tag inside your iframe page.


这篇关于自动刷新网页的iframe内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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