Orny
Orny

Reputation: 665

How can I open my chrome extension's popup page from the extension's content script?

I have a content script which injects a button to the document. I want to open the extension's popup when the button is clicked.

Upvotes: 13

Views: 6102

Answers (1)

Mohamed Mansour
Mohamed Mansour

Reputation: 40149

You cannot open the extension's popup programmatically. That is by design. Perhaps you can use a page action instead?

Good Luck!

Upvotes: 15

Related Questions