如何触发对Google Chrome浏览器地址栏(OmniBox)的关注? [英] How to trigger focus to the Google Chrome address bar (OmniBox)?

查看:97
本文介绍了如何触发对Google Chrome浏览器地址栏(OmniBox)的关注?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个Google Chrome扩展程序,该扩展程序会覆盖新标签(显示的页面当用户打开新的标签或窗口时.

I am making a Google Chrome extension that overrides the New Tab (the page that appears when the user opens a new tab or window).

我想通过单击按钮来触发对Google地址栏的关注.我已经阅读了 chrome.omnibox文档,但是我没有找到触发该方法的方法它的重点.

I want to trigger the focus on the Google's address bar on a button click. I've read the chrome.omnibox docs, but I haven't found a method that triggers its focus.

有一个技巧可以做到吗?

Is there a trick how I can do that?

推荐答案

答案是:否!

我已经尝试了上百万种解决方法和技巧,但没有任何帮助.

I've tried a million workarounds and tricks, but nothing helped.

我的结论是,此操作被认为是安全(和隐私)漏洞,因此是不允许的.

My conclusion is that this action is considered to be a security (and privacy) vulnerability, and therefore is not allowed.

这篇关于如何触发对Google Chrome浏览器地址栏(OmniBox)的关注?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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