I’m writing a firefox extension in javascript, from that script I need to access the DOM object using browser window object. How do I achieve this?
When I tried window.document.deafultView.innerHeight in my extension, I was getting an exception.
I don’t know how to get access to the DOM object using window object from my plugin.
According to http://semanticvoid.com/blog/2006/06/01/accessing-the-dom-from-within-the-firefox-extension/ you can access the DOM with: