I'm currently developing a chrome Extension and i wanted to know, how it's possible to put more then one button on a Extension. Because开发者_运维技巧 when i add for instance 2 reference on the manifest.json, it only display the last one.
I also wanted to now how it's possible to add an input text instead if a button.
Thanks in advance.
No it is not possible, you can only add one browser action per extension. If your extension requires two browser actions, you should deploy two extension, where one of the extensions depends on the origin.
You can use chrome.extension.onRequestExternal.addListener to listen for external requests coming from your extension, and send messages between them with: chrome.extension.sendRequest
Hope that helped!
精彩评论