HTML <a> hyperlink target inPrivate / incognito window

html, javascript

Solution

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.

Problem

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

Original source

Related problems