Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
How can I open empty default new tabs in chromuim based browsers?

I want a javascript instruction that will allow me to open a new default (empty) browser tab, So far I've tried this window.open('chrome://newtab', '_blank'); But the browser returns the following error, Not allowed to load local resource: chrome://newtab/, even when serving the code with a local server

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

The thing is you cannot load local resources. This is also true for chrome://settings/ since Chrome doesn't want to let websites trick inexperienced users into changing the settings.

I'm sure you have already tried this but the closest alternative is loading an about:blank tab with window.open("");

Or, since most of the users have a search engine in their new tab, you can just load window.open("https://www.google.com/");.

The bottom line is You can't load anything that starts with chrome://

about 4 years ago · Juan Pablo Isaza Relatório

0

You aren't allowed to open a chrome:// tab because that is a security risk, so the browser restricts it. It is also not the best solution since it only works on Chrome. Instead, you should open about:blank.

window.open('about:blank', '_blank');
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda