Window.sidebar Redirect 2

« DOM Reference

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.

This feature has been removed from the Web. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.


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


window.sidebar.addPanel("Google", "", "");

Note: the third empty parameter is required!


The sidebar object returned has the following methods:

Method Description
addPanel(title, contentURL, customizeURL) Obsolete since Gecko 23 Adds a sidebar panel. See Creating a Firefox sidebar for details on sidebars in Firefox 2 and later.
addPersistentPanel(title, contentURL, customizeURL) Obsolete since Gecko 23 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().
addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory) Installs a search engine. See Adding search engines from web pages for details.
addMicrosummaryGenerator(generatorURL) Obsolete since Gecko 6 Installs a microsummary generator.


Mozilla-specific. Not part of any standard.

Document Tags and Contributors

 Last updated by: teoli,