How To Make Page To Interact With Background Page?
My Chrome extension has a background page that execute script on current tab.
The script change elements on current tab by adding code to existing
elements to call function 'myFunction' defined at background page when
'onClick' events occur. The problem is that exception is thrown that
'myFunction' is not defined on current tab.
what is the best way to enable this interaction? to enable current page to
go to function defined on background page?
Thanks in advance!
No comments:
Post a Comment