Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

864
Vistas
Open a chrome newtab with url chrome://newtab/

The first line works fine, but the second one doesn't work; why?

// Works
window.open('https://google.com/', '_blank'); 

// Doesn't work, why?
window.open('chrome://newtab/', '_blank'); 
about 4 years ago · Juan Pablo Isaza
3 Respuestas
Responde la pregunta

0

Due to security issues, sadly, you cannot do this in chrome. The best you can do would be to point to google.com if you want the user to have a search bar or something like that. For example, something like this would work:

<a href="https://google.com" target="_blank">Search Anything</a>
about 4 years ago · Juan Pablo Isaza Denunciar

0

Unfortunately, utilizing accessible browser APIs, you won't be able to perform what you desire. window.open has the following syntax: window.open(URL, name, specs, replace). The first two specify how this new "window" will be opened. The address of the window's destination. These can be left blank, but it will open a window titled about:blank. The name specifies how the window should be opened, is the second portion (tab, window, etc.).

This URL can't load local resources; therefore, "chrome:/newtab" won't function. If you try to use a period in your URL, it will open a new window with the last website you visited. If you try to start a new window with a slash in the URL, it will open with the base path of the new window. I tested invalid URLs (random strings and characters), and they merely opened a new window with your current URL and appended anything you wrote.

Sources for Reference

https://developer.mozilla.org/en-US/docs/Web/API/Window/open

about 4 years ago · Juan Pablo Isaza Denunciar

0

You can just try this out:

const newtab = () =>‌ window.open('dummy url', '_blank');

I think that would work for you ;)

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda