I've been trying to find some examples of calling JavaScript from XPCOM components. I cannot find much on the subject though. I can only find examples of calling XPCOM from JavaScript.

Does anyone have an example of executing a script from XPCOM component?

I am hoping for something as simple as:

js_eval("javascript code goes here");

Ultimately, the reason I want to execute JavaScript is to switch to another browser tab. If anyone knows of a good and hopefully easy way of doing it, could you please point me in the right direction?

Thank you,
Michael.
_______________________________________________
dev-tech-xpcom mailing list
dev-tech-xpcom@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to