如何使用js在隐身窗口中打开URL? [英] How to open a URL in incognito window using js?

查看:192
本文介绍了如何使用js在隐身窗口中打开URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有使用js在新的隐身/私人窗口中打开链接的方法?

Is there any method to open a link in a new incognito/private window using js?

找到了这个,但是它只能在扩展中使用.

Found this but it only works from within the extensions.

windows.create({"url": url, "incognito": true});

但是我想在用户单击按钮时以隐身模式打开特定页面.

But I want to open a specific page in incognito mode when the user clicks on a button.

推荐答案

否.浏览器不提供在扩展程序之外实现该功能的API.

No. Browsers provide no API that would make that possible outside of an extension.

这篇关于如何使用js在隐身窗口中打开URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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