Creating a new Tab from a FireFox Extension

Created Mon, 29 Nov 2004 12:36:01 +0000 Modified Mon, 29 Nov 2004 12:36:01 +0000
45 Words

Here is a quick tip on how you can create a new tab that opens to a specified URL via a FireFox extension:

var myUrl = "http://www.mikechambers.com";
var tBrowser = document.getElementById("content");
var tab = tBrowser.addTab(myUrl);

Post any improvements and / or tips in the comments.