HTML< a>超链接目标inPrivate /隐身窗口 [英] HTML <a> hyperlink target inPrivate / incognito window

查看:112
本文介绍了HTML< a>超链接目标inPrivate /隐身窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以通过Javascript或其他代码在HTML页面的私人/隐身窗口中打开url?最理想的是跨浏览器,或者至少是IE和Firefox。



预期的行为将沿着

 < a href =http://domain.comtarget =_ private>连结< / a> 

这是因为管理员希望能够以用户身份登录以预览各种页面,但不会自行排除。尽管围绕这个问题还有其他各种方法,但这是最简单的(假设它是可能的)。

我们可以' t强迫访问者在隐身/私人窗口中查看页面。


Is there a way, via Javascript or other code, to open a url in a private/incognito window from an HTML page? Ideally cross-browser or at the very least IE and Firefox.

The anticipated behaviour would be along the lines of

<a href="http://domain.com" target="_private">Link</a>

The simplified reason for this is because admins want to be able to log in as users to preview various pages, but without logging themselves out. Whilst there are various other ways around this issue, this would be the simplest (assuming it is possible).

解决方案

We can't force the visitor to view the page in incognito/private window.

这篇关于HTML&lt; a&gt;超链接目标inPrivate /隐身窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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