Zachrip
Zachrip

Reputation: 3382

Google Chrome Extension - Programmatically Open Popup

When you make a Google Chrome Extension you can choose to have a "Default_Popup", is there any way to programmatically open the popup?

Upvotes: 5

Views: 4638

Answers (2)

Daniel Herr
Daniel Herr

Reputation: 20478

There is an API, chrome.browserAction.openPopup(function callback), that will hopefully be available soon. Please star this bug: https://code.google.com/p/chromium/issues/detail?id=436489

Upvotes: 2

Mihai Parparita
Mihai Parparita

Reputation: 4236

There is no direct way to open the popup programmatically. However, if you're looking to open it based on a keyboard shortcut, you can use the commands API with the _execute_browser_action command (the API is currently available on the beta channel only).

Upvotes: 7

Related Questions