If you search this mailing list, you'll find this question has been asked and answered numerous times.

----- Original Message ----
From: jonathan
To: dev-extensions@lists.mozilla.org
Sent: Wednesday, August 1, 2007 11:54:41 PM
Subject: calling javascript function in an extension from a webpage

I need a way to call a javascript function defined in an extension from a
webpage. can this be done? I tried adding javascript element on the fly to
the body of the webpage, but it doesn't work.
example:
in webpage
link

in extension I defined
function callExFunc(){
}

thanks!


_______________________________________________
dev-extensions mailing list
dev-extensions@lists.mozilla.org
https://lists.mozilla..org/listinfo/dev-extensions