1
edit
Changes
no edit summary
<pre>
function openInNewTab (webpage) if(popTart_current_webpage webpage != '')
{
var newTab = gBrowser.addTab(popTart_current_webpagewebpage);
gBrowser.selectedTab = newTab;
}
Let me know if this works. --[[User:Pcvitori|Pcvitori]] 11:52, 29 November 2006 (EST)
Sorry i forgot to show you how to get the gBrowser variable. The following is the modified code.
<pre>
function openInNewTab (webpage)
if(webpage != '')
{
var gBrowser = window.opener.getBrowser();
var newTab = gBrowser.addTab(webpage);
gBrowser.selectedTab = newTab;
}
}
</pre>
--[[User:Pcvitori|Pcvitori]] 11:53, 1 December 2006 (EST)
<pre>
var gBrowser = window.parent.gBrowser;
</pre>
Try that.. :)
--[[User:Pcvitori|Pcvitori]] 10:08, 2 December 2006 (EST)