Here I work with chrome my menifest.json file, for example:
{ "name": "chrome Demo", "version": "1.0", "description": "Official addon from chrome", "browser_action": { "default_icon": "star-on.png", "popup": "popupnew.html" }, "permissions": [ "tabs", "cookies", "http://*/*", "https://*/*", "contextMenus" ], "background_page": "background.html" }
Here it works fine, when I click default_icon in the browser, it will open a popup.
Now I'm worried that I want to open my popup page using a script. "In the background, I want to write a script that can handle a popup
thanks in advance.
source share