Open content tab

This article needs a technical review. How you can help.

Open a content tab in Thunderbird

Components.classes["@mozilla.org/appshell/window-mediator;1"]
          .getService(Components.interfaces.nsIWindowMediator)
          .getMostRecentWindow("mail:3pane")
          .window.document.getElementById("tabmail")
          .openTab("contentTab", {contentPage: "https://www.mozilla.org/"});

Document Tags and Contributors

 Contributors to this page: rolfedh, Aryx
 Last updated by: rolfedh,