返回按钮和内嵌框架
我有一个链接,可以打开包含 iframe 的 Jquery UI 对话框。当我单击浏览器中的后退按钮时,它会循环浏览 iframe 历史记录。我希望它返回到父窗口历史记录中。我该怎么做?
我知道 stackoverflow 上有类似的问题,但我找不到任何可以回答我的问题的问题。
I have a link which opens up a Jquery UI Dialog containing an iframe. When I click the back button in the browser it cycles through the iframes history. I want it to go back in the parent windows history. How would I do this?
I'm aware there are similar questions on stackoverflow but I couldn't find any which answer my question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过在 iframe 内的所有链接上返回 false 来修复。我意识到这对于大多数关注这个问题的人来说并不是一个真正的解决方案,但它对我来说非常有效。
Fixed by returning false on all links inside the iframe. I realize this isn't really a solution for most people looking at this problem but it works perfectly for me.