ah is so easy! res = mediator->GetMostRecentWindow(nsnull, getter_AddRefs(mrw)); res = mrw->GetContent(getter_AddRefs(ContentWnd)); res = ContentWnd->GetDocument(getter_AddRefs(xuldocument));
"lasombra" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > Can anyone gives me a little example how I can get the actual document > (XUL document) loaded in the browser for to modify an element? I want to > do this with an XPCOM component and not with javascript. That means I call > in the javascript a function of my component which gets an element with > getElementById (e.g. a button) and modifies an attribute (e.g. set label > of the button). > > regards > > Adrian > _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
