My Firefox extension has a button which when clicked, injects some JavaScript code into the current page. How can this injected JavaScript code in a web-page call a JavaScript function in my extension? It would be helpful if someone could point me to an example.
Thanks.