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

From CDOT Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
You should consider adding a screenshot of your extension so people can see it without having to install it first. ([[User:David.humphrey|David.humphrey]] 16:03, 21 November 2006 (EST))
 
You should consider adding a screenshot of your extension so people can see it without having to install it first. ([[User:David.humphrey|David.humphrey]] 16:03, 21 November 2006 (EST))
 +
 +
Hey paul, this is how you create a new tab into Firefox:
 +
 +
<pre>
 +
function openInNewTab ()
 +
    if(popTart_current_webpage != '')
 +
    {
 +
var newTab = gBrowser.addTab(popTart_current_webpage);
 +
        gBrowser.selectedTab = newTab;
 +
    }
 +
}
 +
</pre>
 +
 +
Let me know if this works. --[[User:Pcvitori|Pcvitori]] 11:52, 29 November 2006 (EST)

Revision as of 12:52, 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 ()
    if(popTart_current_webpage != '')
    {
	var newTab = gBrowser.addTab(popTart_current_webpage); 
        gBrowser.selectedTab = newTab; 
    }
}

Let me know if this works. --Pcvitori 11:52, 29 November 2006 (EST)