javascript - how to open default_popup on contextmenu item click in chrome extension -
How to open default_popup on context menu items click in Chrome extension
Anyway? When users click on the context menu item, we can call / open the HTML file, which is defined in the default_popup for the browser verb.
I did not already have the following link there (no possible way). If no one, then what should I do to get it to any option?
Google Chrome developer team has said that this feature is a Can not be added to:
The philosophy for browser and page action popups is that they should be triggered with user action.
Open the popup.html file in a new tab by using the following code or something similar
Note: To make a call from the background page Required and requires "tab" permission
// popup.html opens in new tab chrome.tabs.create ({'url': chrome.extension. GetURL ('popup.html')}, function (tab) {// tab opened}});
Comments
Post a Comment