Subj : JavaScript from C++ To : netscape.public.mozilla.jseng From : ac Date : Sun Aug 07 2005 05:15 pm Hi, All. I am trying to figure out how to do two things: 1) Execute JavaScript from C++ XPCOM. E.g. I have: And want to call it from my XPCOM component. 2) I need to call XBL methods (e.g. from tabbrowser.xml). With JavaScript and XUL I can easy call document.getElementById("content").selectedBrowser.currentURI How can I do the same from C++? Any advices will be very appreciated! Thank you for your time! Alex. .