<iframe width="920px" height="500px" style="border-radius: 5px; border: 1px solid #cfcfcf;" src="http://login.uid.me/?site=dinterncup-thc&ref=http://interncup-thc.ucoz.com/" onclick="refreshIframe();"></iframe>
我希望 AFTER 刷新 iframe 内的页面,以刷新 或重定向 整个 页面.我怎样才能做到这一点? 谢谢!
最佳答案
从 iframe 中,您可以修改父窗口的 url。将此添加到您的 refreshIframe 函数:
parent.location.href="yourNewURL";
这假定 iframe 及其父级在同一个域中。
关于html - 单击/提交到 iframe 后刷新整个页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16241066/