mike chambers | about

Creating a new Tab from a FireFox Extension

Monday, November 29, 2004

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.

twitter github flickr behance