PDA

View Full Version : Access DOM from sidebar?


thegooddale
09-23-2006, 03:21 AM
Hi, I'm trying to make a sidebar for Firefox and I want to use javascript in the sidebar to access the DOM of the content window, but I'm not sure how to go about it.

I tried this: window.navigator.document.getElementById("body1") but it didn't work.

I've been going through the Mozilla DOM reference page (http://www.mozilla.org/docs/dom/domref/dom_shortIX.html)for something that will allow me to select the content window, but I haven't found anything yet. :(

Can some one point me in the right direction?

Cheers.