Difference between revisions of "Talk:Generalization of Joga extension"

From CDOT Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
<pre>
 
<pre>
function openInNewTab ()
+
function openInNewTab (webpage)
     if(popTart_current_webpage != '')
+
     if(webpage != '')
 
     {
 
     {
var newTab = gBrowser.addTab(popTart_current_webpage);  
+
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)