Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML <a> hyperlink target inPrivate / incognito window [duplicate]

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).

like image 905
Pandy Legend Avatar asked Jul 09 '14 07:07

Pandy Legend


People also ask

How do I make a link open in Incognito window?

You can also use a keyboard shortcut to open an Incognito window: Windows, Linux, or Chrome OS: Press Ctrl + Shift + n. Mac: Press ⌘ + Shift + n.

How do I open an Incognito page in HTML?

The easiest way to open an Incognito window is with the keyboard shortcut combination Ctrl-Shift-N (Windows) or Command-Shift-N (macOS).

What does it mean to open link in Incognito window?

In Incognito, none of your browsing history, cookies and site data, or information entered in forms are saved on your device. This means your activity doesn't show up in your Chrome browser history, so people who also use your device won't see your activity.

Can Incognito window be traced?

Incognito mode doesn't prevent web tracking Your incognito history can still be seen by your ISP, and the websites you visit can still track you. Incognito mode does not mean you're browsing anonymously.


1 Answers

We can't force the visitor to view the page in an incognito/private window. Browsers provide no API that would make that possible outside of an extension.

like image 87
Sriraman Avatar answered Sep 27 '22 21:09

Sriraman