You cannot do this with Javascript (window.open()) or HTML as this presents a security risk. For example, this could be used to trick visitors of a site to change settings in order to make it easier to launch an attack of some sort. Plus, the browser settings are not an actual URL like regular pages you can go to, they are handled by the browser itself.
For more information, check out these links:
- Link to a browser's settings
- Why can't I open the chrome settings page from javascript
You can ask them to change their settings but cannot link them to it directly.
By the way, this is for all browsers, not just Google Chrome.
Answer from Nasser Kessas on Stack OverflowVideos
I was unable to properly view a website in chrome browser on laptop, but other browsers displayed the website. I fiddled for awhile and finally reset Chrome, but the problem persisted.
Developer tools indicated some issues, "Content Security Policy blocks inline execution of scripts and stylesheets" and "Content Security Policy of your site blocks some resources". So I searched and was led to believe this may be related to Settings > Privacy and security > Site Settings > Additional content settings.
The problem is when I click to show "Additional content settings", the vertical scrollbar jumps to the bottom and doesn't let me scroll down to see any settings. When I click to collapse "Additional content settings", the scrollbar reverts to its higher prior position and allows me to scroll down and see content below the collapsed section. Thus, I cannot access any settings in that section.
Any thoughts?
You cannot do this with Javascript (window.open()) or HTML as this presents a security risk. For example, this could be used to trick visitors of a site to change settings in order to make it easier to launch an attack of some sort. Plus, the browser settings are not an actual URL like regular pages you can go to, they are handled by the browser itself.
For more information, check out these links:
- Link to a browser's settings
- Why can't I open the chrome settings page from javascript
You can ask them to change their settings but cannot link them to it directly.
By the way, this is for all browsers, not just Google Chrome.
The reason why the Chrome settings page does not open when clicking the link in the HTML code A is because the href attribute in the tag specifies a URL to navigate to, and chrome://settings/content/popups is not a valid URL that can be accessed through the web.
To open the Chrome settings page from an HTML link, you can try and use the chrome.tabs API to interact with the browser's tab system.