开发者

how to popup my google chrome extension

开发者 https://www.devze.com 2023-01-17 00:38 出处:网络
google chrome extension: i have added a context menu to the browser, how to I popup the popup开发者_运维问答.html on click on the context menu item ?Send a request to a content script in a tab where t

google chrome extension: i have added a context menu to the browser, how to I popup the popup开发者_运维问答.html on click on the context menu item ?


Send a request to a content script in a tab where the menu item was clicked. In the content script get popup.html url by calling chrome.extension.getURL("popup.html") and then display this url in a popup like you normally would.

0

精彩评论

暂无评论...
验证码 换一张
取 消