javascript 我们如何在隐私浏览模式下打开链接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16148136/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 03:26:54  来源:igfitidea点击:

How can we open a link in private browsing mode

phpjavascriptjqueryhtmlbrowser

提问by nilesh

In my web page there is a link which should be opened in private browsing mode always. So how can I do it using HTML/javascript/jquery/php?

在我的网页中,有一个链接应该始终以隐私浏览模式打开。那么我该如何使用 HTML/javascript/jquery/php 来实现呢?

采纳答案by Anyone

That's up to the user. You can't force a user to open the browser in private browsing mode.

这取决于用户。您不能强制用户以隐私浏览模式打开浏览器。

回答by Nocturnal

HTML and Javascript are used on a wide variety of programs including browsers. Even among the browsers, only a few browsers have private/incognito mode. So there cannot be a native HTML/Javascript feature to target the private browsing mode.

HTML 和 Javascript 用于各种程序,包括浏览器。即使在浏览器中,也只有少数浏览器具有隐私/隐身模式。因此,不能有针对隐私浏览模式的本机 HTML/Javascript 功能。