9

Creating a new Tab from a FireFox Extension

 3 years ago
source link: http://www.mikechambers.com/blog/2004/11/29/creating-a-new-tab-from-a-firefox-extension/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK