Visit Mozilla.org

DOM:window.sidebar

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

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

[edit] Example

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

Note: the third empty parameter is required!

[edit] Notes

The sidebar object returned has the following methods:

Method Description
addPanel(title, contentURL, customizeURL)
addPersistentPanel(title, contentURL, customizeURL)
addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory) Installs a search engine. See Adding search engines from web pages for details.
addMicrosummaryGenerator(generatorURL) Installs a microsummary generator. New in Firefox 2

[edit] Specification

Mozilla-specific. Not part of any standard.