将 Firefox 侧边栏链接保留在侧边栏中

发布于 2024-08-07 07:25:56 字数 261 浏览 1 评论 0原文

我在 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 技术交流群。

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

发布评论

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

评论(2

莫言歌 2024-08-14 07:25:56

我认为您需要做的就是链接,或添加 target="_self"

I think all you need to do is link, or add target="_self"

み格子的夏天 2024-08-14 07:25:56

这可能是一个潜在的解决方法,而不是真正的答案,但您可以尝试使用 javascript 将 document.location 更改为新 URL。类似于:

<a href="javascript:document.location='http://whatever'>click me</a>

这将使用相同的“窗口”对象来显示新页面,并且应该在侧边栏中加载。

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:

<a href="javascript:document.location='http://whatever'>click me</a>

This would use the same 'window' object to display the new page and should load in the sidebar.

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