Chrome Extension - The pop-up window will open automatically if my condition is true

Viewed 664

I have a little issue with my chrome extension. I want if active tab is URL that I want, automatic open popup.html of my chrome extension. For example if user opens stackoverflow.com, my popup, opens automatic.

another question: Need I background.js for develop chrome extension or I can develop my app without this. Now I have a index.html and index.js

Thanks a lot!

1 Answers

Chrome extensions cannot programmatically open their popups. The user must either click the browser action or perform an equivalent action (e.g. mapping a command to _execute_browser_action).

Background scripts are not required. You can have a fully functional extension that only uses the browser action popup window.

Related