如何从iFrame中重新加载主页面 [英] How to reload Main Page from within an iFrame

查看:113
本文介绍了如何从iFrame中重新加载主页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的场景中,我在页面的iframe部分有一个按钮,用于执行一些数据库处理。

Within my scenario, I have a button within an iframe section of my page that performs some database processing.

我基本上需要的是执行页面的方法按下iframe中的此按钮时刷新主页面。

What I basically need is a means of performing a page refresh of the main page, when this button within the iframe is pressed.

非常感谢我可以在iframe中触发的javascript,它会重新加载持有iframe的主窗口。

Would appreciate the javascript that I can trigger within the iframe, that will reload the main window holding the iframe.

感谢。
Tony。

Thanks. Tony.

推荐答案

window.top.location.reload();

这篇关于如何从iFrame中重新加载主页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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