返回按钮和内嵌框架

发布于 2025-01-02 14:27:02 字数 154 浏览 1 评论 0原文

我有一个链接,可以打开包含 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北城挽邺 2025-01-09 14:27:02

通过在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文