skip to Main Content

I can open a Chrome setting page by typing chrome://settings/content/popups in the address of Chrome.

When I try to use the following code A to open Chrome setting page by clicking the link of HTML, I find the Chrome setting page can’t be opened, why?

Code A

 <a href="chrome://settings/content/popups">chrome://settings/content/popups</a>

2

Answers


  1. 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:

    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.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search