1

Is it possible via window.open to open a page with information about the version of the browser? My browser is Google Chrome.

window.open("chrome://version/");

This code opens a new tab "about:blank".

  • Does this answer your question? [Link to chrome:// url from a webpage](https://stackoverflow.com/questions/40362775/link-to-chrome-url-from-a-webpage) – gre_gor Nov 03 '22 at 03:57

2 Answers2

1

You cannot use any of the usual APIs from the Web platform to open chrome:// pages.

These pages can be opened using chrome.tabs.create though:

chrome.tabs.create({
    url: 'chrome://version'
});
Rob W
  • 341,306
  • 83
  • 791
  • 678
  • I tried using this in content script but this is not working. It shows `Cannot read property 'create' of undefined` – PG1 Jul 28 '14 at 11:54
  • 2
    @ParagGangil This API is not available to content scripts. Put the `chrome.tabs.create` call in a [background](https://developer.chrome.com/extensions/background_pages) or [event page](https://developer.chrome.com/extensions/event_pages), and [send a message](https://developer.chrome.com/extensions/messaging) from the content script to the background page to open the new tab. – Rob W Jul 28 '14 at 11:56
0

You're not allowed to do this (security reason, probably):

Try typing that in the console:

window.location.href = "chrome://version/"

output: Not allowed to load local resource: chrome://version/

Michal Leszczyk
  • 1,849
  • 15
  • 19