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.

Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите закончить эту работу!

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Returns a sidebar object, which contains several methods for registering add-ons with browser.

Example

window.sidebar.addPanel("Google", "https://www.google.com/", "");

Note: the third empty parameter is required!

Notes

The sidebar object returned has the following methods:

Method Description
addPanel(title, contentURL, customizeURL) Adds a sidebar panel. Obsolete since Firefox 23 (only present in SeaMonkey). See Creating a Firefox sidebar for details on sidebars in Firefox 2 and later.
addPersistentPanel(title, contentURL, customizeURL) Adds a sidebar panel, which is able to work in the background. This only works in SeaMonkey or Firefox 1.x; Firefox 2 and later will just do addPanel(). Obsolete since Firefox 23 (only present in SeaMonkey).
AddSearchProvider(descriptionURL) Installs a search provider (OpenSearch). Adding OpenSearch search engines contains more details.Added in Firefox 2.
addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory) Obsolete since Gecko 44 Installs a search engine (Sherlock). Adding Sherlock search engines contains more details.
addMicrosummaryGenerator(generatorURL) Obsolete since Gecko 6 Installs a microsummary generator.
IsSearchProviderInstalled(descriptionURL) Indicates if a specific search provider (OpenSearch) is installed.

Specification

Mozilla-specific. Not part of any standard.

Метки документа и участники

 Внесли вклад в эту страницу: IsaacSchemm, teoli, fscholz, iamanupmenon, kohei.yoshino, Sheppy, ethertank, Mnyromyr, Deltab, Mgjbot, Jabez, Nickolay, Dria, JesseW
 Обновлялась последний раз: IsaacSchemm,