Firefox Sidebar and Document object of DOM
Thanks for the answers. I have to refine my question however. The main window has some webpage loaded and the sidebar has a webpage. I want the sidebar window to know what text the user has selected on the main window when a link on the sidebar window is clicked. I know how to get the selected text from a window. Only that the sidebar element adds complexity to the problem that I am not able to surpass.
I like your answer, but when I try it there is an error:
Error: Permission denied to create wrapper for object of class UnnamedClass.
- If the web pages are out the very same domain name, they aren't permitted to chat (very same - domain name constraint)
- If one web page did closed the various other, there is no other way for either web page to acquire a reference to the various other
I'm not exactly sure just how a web page can ask for the opening of a web page in the sidebar, or the other way around. Yet if you can take care of that, make use of
var child = window.open(...) to get a reference one instructions and also
window.opener to get a reference the various other instructions.