开发者

Keep Firefox sidebar links in the sidebar

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.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜