-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Hello friends i developed a tollbar for Firefox browser. Now This > toolbar contains a menu item. A web page will be opened by the user of > the Toolbar. This Web page source code has included many .JS fiels in > it. These JS files defined various functions , Now i want to call these > functions from my toolbar menu command. How can i do that? I know > function name which i have to call. > > I tried to call function directly by its name but it is giving error > that this function is not exist? > > How should i call that function.
a js function is attached as a field of the window object where it is declared. so, from your toolbar button handler, you can try _content.yourFunction() -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSGirtMkIv0/ruZgRAuFcAKCl0qzQAj9k41I8YgXLyd2K6IRfEgCfQ+xP DtFTnHKfrFz+3VX9WD4Uhpo= =RvJU -----END PGP SIGNATURE----- _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
