Hi,
My goal is to catch pageloads in my component, insert some javascript into the document and then catch onFocus events. On an event i then want to call the javascript function i injected.
Now i managed to solve most issues, i have the script added to all webpages and i can catch onfocus events. What im not able to do is execute a javascript function from my XPCOM component (C++). In my Internet Explorer BHO i use execScript and it works great. Any ideas?
Currently my workaround is to use setattribute and set the onfocus event of each input element to execute the javascript function, but this is intrusive and overwrites existing onFocus handlers in the webpage. Other ideas are welcome.
Thanks.