如何以编程方式从background.html打开chrome扩展弹出窗口
问题描述:
提前谢谢!
我要实现的是,当我的扩展程序在网页上检测到特殊标记时,打开弹出窗口.搜索一段时间后,似乎只有在用户单击扩展名时才能打开弹出窗口.是真的吗
What I want to achieve is to open the popup window when a special tag is detected on a webpage by my extension. After searching for a while it seems like the popup can only be opened when user clicks the extension. Is it true?
还是可以在浏览器中获取扩展程序图标的位置?也许我可以画一个窗口并在扩展图标下显示,以使其看起来像弹出窗口.
Or could I get the location of my extension's icon on browser? Maybe I could draw a window and display under the extension icon to make it looks just like the popup window.