Can someone please tell me how to get the URI of the current browser window, for firefox, using Javascript
I made an XPCOM component, and I have a small UI, a XUL page, accessed from the browser toolbar. I would like to get the current url and pass it on to the object, through the script. I tried getting the nsIWebBrowser, QI'd it for nsIWebNavigation, to get the currentURI, but it keeps saying it is undefined. This is the first time I am writing Javascript. If someone knows how to do it, please let me know. thanks, lav _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
