Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Extension Background Page Show Popup Page

I am making a Google Chrome extension and I would like to have my background page to cause the browser action's popup page to show after an event. Can this be done?

Thanks

like image 488
QAH Avatar asked Apr 11 '10 15:04

QAH


People also ask

How do you send a message from the background script to a popup script?

forEach((tab) => { chrome. tabs. sendMessage( tab.id, youtPayload, function (response) { // do something here if you want } ); }); }); That's it!

Can Chrome extensions run in background?

Chrome 10 Now Lets Extensions Run in the Background.

What does letting Chrome run in the background do?

Since Chrome is already running in the background, there is less that has to take place behind the scenes before your new browser window appears. This makes the browser feel quick, even on slower machines. Running in the background also allows any Chrome extensions you might have installed to continue to operate.


1 Answers

You cannot show/hide a browser action nor you can trigger a popup to open. If you need something to show, did you consider using HTML5 notifications?

like image 108
Mohamed Mansour Avatar answered Oct 03 '22 05:10

Mohamed Mansour