Thanks, I have already try this, but I found some problems. When I open the browser and set a url, I don't have the html page open immediately. So I don't have the DOM document to change, only when the page have been loaded. And the problom is not only for the open html page, if the user use IFrames, my javascript objects must be accessible for all iframe. Is something like create a new default object, like document or window.... Do you know how to do this..... I'm reading everything in the internet for many day, but I can find a good documentation for mozilla....
thanks On 4 jul, 04:30, EliteLama <[EMAIL PROTECTED]> wrote: > Maybe you could do this by creating and adding a script-node to the > DOM in the embedded browser. But as far as I know you can only invoke > those scripts by writing your own xpcom component. Because with the > MozillaBrowser execute method you can get no return value. > > With browser.getDocument(); you can get the nsIDOMDocument from the > MozillaBrowser. Then you have to find the nsIDOMNode which you want to > attach the script to. With node.appendChild(newnode); you can append a > new child to the node you found. > I have not tried this on my own... so please correct me if I'm wrong. > > Good Luck, > Christopher _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
