刷新iframe而不刷新父页面 [英] Refresh iframe without refreshing the parent page

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

问题描述

我有一个不断刷新的页面,我希望将该页面包含在我的主页面中。

I have a page that constantly refreshes itself, I want to include the page into my main page.

我正在使用iframe将页面包含到我的主页面中页面,但每次iframe中的页面刷新时,它也会刷新我的主页面。如何在自己的框架内刷新iframe并且不影响我的主页?

I am using an iframe to include the page to my main page, but every time the page in the iframe refreshes, it also refreshes my main page. How can I make the iframe refresh within its own frame and not affect my main page?

或者有没有更好的方法来包含页面而不使用iframe?

Or is there a better way to include the page without using iframes?

推荐答案

我有一个解决方案:

HERE

这实际上每3秒重新加载一次iframe,但它可以根据您的需要轻松定制一次性重装,因为基本原则适用...

This actually reloads an iframe every 3 seconds, but it can be easily tailored to your needs for a 1-time reload since the basic principals apply...

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

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