Google Chrome扩展程序 - 以编程方式打开弹出窗口 [英] Google Chrome Extension - Programmatically Open Popup

查看:478
本文介绍了Google Chrome扩展程序 - 以编程方式打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您制作Google Chrome浏览器扩展程序时,您可以选择使用Default_Popup,是否可以通过编程方式打开弹出窗口? div>

没有直接的方式来以编程方式打开弹出窗口。但是,如果您打算根据键盘快捷键打开它,则可以使用命令API 使用 _execute_browser_action 命令(该API目前仅在beta版频道上提供)。

When you make a Google Chrome Extension you can choose to have a "Default_Popup", is there any way to programmatically open the popup?

解决方案

There is no direct way to open the popup programmatically. However, if you're looking to open it based on a keyboard shortcut, you can use the commands API with the _execute_browser_action command (the API is currently available on the beta channel only).

这篇关于Google Chrome扩展程序 - 以编程方式打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆