将 Firefox 侧边栏链接保留在侧边栏中
我在 Firefox 中创建了一个书签,该书签链接到我编写的托管 Web 应用程序,并使用“在侧边栏中加载此书签”选项在侧边栏中显示该应用程序。
当应用程序出现在侧边栏中并且我单击那里的链接时,这些链接会在当前 Firefox 选项卡中打开,而不是停留在侧边栏中。我希望链接的页面出现在侧边栏中。
我希望有一个简单的解决方案,例如通过基本标签设置默认目标,但我找不到为我提供所需信息的参考。如果解决方案不将应用程序仅限于侧边栏,并且仍然允许应用程序全窗口运行,那么这将很有用。
I've created a bookmark in Firefox that links to a hosted web application I've written and displays the application in the sidebar using the "Load this bookmark in the sidebar" option.
When the application appears in the sidebar and I click links there, those links open in the current Firefox tab rather than staying in the sidebar. I would like the linked page to appear in the sidebar.
I'm hoping there's a simple solution, like setting the default target via a base tag, but I can't find a reference that gives me the information I need. It would be useful if the solution does not limit the application to the sidebar exclusively, and still lets the application run full-window.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您需要做的就是链接,或添加 target="_self"
I think all you need to do is link, or add target="_self"
这可能是一个潜在的解决方法,而不是真正的答案,但您可以尝试使用 javascript 将 document.location 更改为新 URL。类似于:
这将使用相同的“窗口”对象来显示新页面,并且应该在侧边栏中加载。
This may be more a potential workaround than a real answer, but you could try using javascript to change document.location to the new URL. Something like:
This would use the same 'window' object to display the new page and should load in the sidebar.