Call popup.html javascript function from background page
3 answers
Unfortunately, it is not possible to get a direct link to the popup page, the main reason is that the page may not open when you try to call it.
You have to use a message to pass a message between popups and background pages.
I would ask if there is a definite need to have the function in the popup and not reinstall it in a separate shared file.
+3
source to share