我正在开发我的第一个Google Chrome扩展程序。
假设我在http://example.com上,并且从http://example.net打开了一个弹出窗口。
当我单击http://example.net页面上的browserAction按钮时,是否有办法获取http://example.com弹出参考?
使用getAll()中的chrome.windows方法。
getAll()
chrome.windows.getAll(object getInfo, function callback)