FireFox Toolbar Open Window in new Tab
        Posted  
        
            by 
                Mark
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mark
        
        
        
        Published on 2011-01-04T16:50:35Z
        Indexed on 
            2011/01/04
            16:54 UTC
        
        
        Read the original article
        Hit count: 222
        
Hi all,
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...
© Stack Overflow or respective owner