Alex
Alex

Reputation: 1055

Chrome Extension Button

Is there a way to execute a script when the extension button is clicked, NOT through 'popup' opening up and then clicking a button in the popup window?

Upvotes: 1

Views: 876

Answers (1)

Can't Tell
Can't Tell

Reputation: 13416

Take a look at this. A popup is optional. The button has an "onClicked" event.

Take a look at this example as well. You will notice that the manifest does not have a popup defined. And the background page listens to the "onClicked" event of the button.

Upvotes: 3

Related Questions