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 ?
chrome.windows.update(windowid, {focused: true});
Comments
Post a Comment