在Google Chrome扩展程序中获取打开的弹出窗口

问题描述 投票:0回答:1

我正在开发我的第一个Google Chrome扩展程序。

假设我在http://example.com上,并且从http://example.net打开了一个弹出窗口。

当我单击http://example.net页面上的browserAction按钮时,是否有办法获取http://example.com弹出参考?

javascript browser google-chrome-extension
1个回答
1
投票

使用getAll()中的chrome.windows方法。

chrome.windows.getAll(object getInfo, function callback)
© www.soinside.com 2019 - 2024. All rights reserved.