Difference between revisions of "Talk:Generalization of Joga extension"
Line 4: | Line 4: | ||
<pre> | <pre> | ||
− | function openInNewTab () | + | function openInNewTab (webpage) |
− | if( | + | if(webpage != '') |
{ | { | ||
− | var newTab = gBrowser.addTab( | + | var newTab = gBrowser.addTab(webpage); |
gBrowser.selectedTab = newTab; | gBrowser.selectedTab = newTab; | ||
} | } |
Revision as of 12:57, 29 November 2006
You should consider adding a screenshot of your extension so people can see it without having to install it first. (David.humphrey 16:03, 21 November 2006 (EST))
Hey paul, this is how you create a new tab into Firefox:
function openInNewTab (webpage) if(webpage != '') { var newTab = gBrowser.addTab(webpage); gBrowser.selectedTab = newTab; } }
Let me know if this works. --Pcvitori 11:52, 29 November 2006 (EST)