Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get item in sidebar?

0 views
Skip to first unread message

c.pa...@cobertec.com

unread,
Aug 30, 2006, 1:22:15 PM8/30/06
to dev-ext...@lists.mozilla.org
Hi:
I have a firefox extension with one toolbarpalette and a sidebar.
In the toolbarpalette I have some toolbarbutton and one of them I want to
use to get the content of one of the elements in the sidebar.

How can I access this item from toolbar?

thanks

Nickolay Ponomarev

unread,
Aug 31, 2006, 4:27:36 AM8/31/06
to c.pa...@cobertec.com, dev-ext...@lists.mozilla.org
>From a script in a browser window,
document.getElementById("sidebar").contentDocument
returns the document currently loaded into that window's sidebar.

Nickolay

0 new messages