Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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

addTab( URL, referrerURI, charset, postData, owner, allowThirdPartyFixup )
addTab( URL, {referrerURI: ..., charset: ..., postData: ..., owner: ..., allowThirdPartyFixup: ..., relatedToCurrent: ... })
Return type: tab element
Opens a new tab that loads a page with the specified URL. The rest of the parameters are optional. The row of tabs will appear if needed.

Firefox 3.6 note

The second form of this method was added in Firefox 3.6; it allows you to specify the parameters by name, in any order. It also adds the relatedToCurrent parameter; Firefox uses this to decide whether the new tab should be inserted next to the current tab.

See Code snippets:Tabbed browser for examples.
See Preprocessing POST Data for preparing postData out of a string.

 

Document Tags and Contributors

 Contributors to this page: Sheppy, kscarfone, trevorh, ethertank, Marsf, Enn, Brettz9, Nickolay, Ptak82, Dfltr, Ancestor, Dria
 Last updated by: Sheppy,