Opening a new tab with Firefox
Note that this only works from a Firefox extension:
function openTab(url, focus)
{
var tab = getBrowser().addTab(url);
if(focus)
{
getBrowser().selectedTab = tab;
}
return tab;
}
Note that this only works from a Firefox extension:
function openTab(url, focus)
{
var tab = getBrowser().addTab(url);
if(focus)
{
getBrowser().selectedTab = tab;
}
return tab;
}