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.
No. Browsers provide no API that would make that possible outside of an extension.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.