FireFox 工具栏在新选项卡中打开窗口
我有一个带有
<toolbarbutton context="TabMenue" id="esbTb_rss_reader" label="News" type="menu">
上下文菜单的工具栏按钮,右键单击该按钮时会出现该按钮,
<menupopup id="TabMenue" >
<menuitem label="New Tab" oncommand="esbTb_loadURLNewTab()"/>
</menupopup>
因此该功能应该在新选项卡中打开新窗口
function esbTb_loadURLNewTab() {
window.open(ClickUrl,'name'); }
我无法正常工作,因为新窗口显示在它总是打开的新选项卡中一个新的 Firefox 窗口。
所以我很感激任何提示,提示这是什么让我发疯的......
I have a Toolbarbutton
<toolbarbutton context="TabMenue" id="esbTb_rss_reader" label="News" type="menu">
with a Context menue which comes up when the button is right clickt
<menupopup id="TabMenue" >
<menuitem label="New Tab" oncommand="esbTb_loadURLNewTab()"/>
</menupopup>
so this function should open the new window in a new tab
function esbTb_loadURLNewTab() {
window.open(ClickUrl,'name'); }
I don't get it working that the new Window is showing up in a new tab it always opens a new firefox window.
I tried also like described in this article to set the browser.link.open_newwindow and browser.link.open_newwindow.restriction preferences but that doesn't bringt anything.
And I tried it with all Target attributes which came in my mind.
So I'm grateful for any hints, tips what ever this is driving me crazy...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该会有所帮助:在新选项卡中打开 URL。
但首先(或多或少复制和粘贴):
This should help: Opening a URL in a new tab.
But to give a start (more or less copy&paste):