Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open popup.html using script in chrome extension?

Here I am working with chrome my menifest.json file like :

    {
  "name": "chrome Demo",
  "version": "1.0",
  "description": "Official addon from chrome",
  "browser_action": {
    "default_icon": "star-on.png",
    "popup": "popupnew.html"    
  },
  "permissions": [
    "tabs",
    "cookies",          
    "http://*/*", 
    "https://*/*",
     "contextMenus"
  ],
  "background_page": "background.html"   
}

Here it work fine when I click default_icon on browser it will open popup page.

Now my concern is I want to open my popup page using script. "In background I want to write script which able to handle popup page"

thanks in advance..

like image 401
Yashwant Kumar Sahu Avatar asked Aug 10 '11 09:08

Yashwant Kumar Sahu


2 Answers

Sorry, but currently there is no way of opening it programmatically.

like image 96
serg Avatar answered Nov 15 '22 07:11

serg


You can open popup.html in a new window or tab. While this isn't quite the functionality you are looking for it will have a similar effect. Especially if you format the new window similarly.

like image 33
Wade Avatar answered Nov 15 '22 09:11

Wade