google chrome extension - how to set the focus on a external windows I created? -


in background.js, use open new external popup window

chrome.windows.create({type:"panel", url: "https://www.example.com/", width:320, height:240},  function (_win) {     win = _win.id; }); 

how can set focus later on popup window ?

use chrome.windows.update:

chrome.windows.update(windowid, {focused: true}); 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -