Compare Revisions

Tabbed browser

Change Revisions

Revision 58521:

Revision 58521 by Mgjbot on

Revision 58522:

Revision 58522 by Dfltr on

Title:
Tabbed browser
Tabbed browser
Slug:
Code_snippets/Tabbed_browser
Code_snippets/Tabbed_browser
Tags:
Extensions, Add-ons, "Code snippets"
Extensions, Add-ons, "Code snippets"
Content:

Revision 58521
Revision 58522
t278      Finally, use <code>gBrowser.mPanelContainer.childNodes.lengt278      Finally, use <code>gBrowser.browsers.length</code> to get t
>th</code> to get the number of open tabs and <code>gBrowser.getBr>he number of open tabs and <code>gBrowser.getBrowserAtIndex()</co
>owserAtIndex()</code> to get a <code>&lt;browser/&gt;</code> elem>de> to get a <code>&lt;browser/&gt;</code> element. For example:
>ent. For example: 
279    </p>
280    <pre>279    </p>
281var num = gBrowser.mPanelContainer.childNodes.length;280    <pre>
281var num = gBrowser.browsers.length;

Back to History