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

201
Visualizações
Difference in browser windows that can and can't have tabs

I'm constrained to code (JavaScript, HTML) I can edit in a new window created by a window.open(URL, target, specs) function. I cannot change the opener window in any way.

I'm trying to open links in a way that makes sense - either in a new tab in the current window or a new window, depending on browser settings. But I can't do it.

All I can do is:

  • <a href=URL target="_blank"> opens in a new tab in the original window, causing user disorientation,
  • window.open(URL, name) opens like the above,
  • window.open(URL, name, specs) opens another browser window, giving the user 3 windows to manage.

Ideally, the opener would do something sensible like honor the user preference for opening links in their choice of a new tab or a new window, bit this won't be achievable.

I've noticed a browser window that can't have tabs to be ones created with JavaScript's window.open(URL, name, specs) function and those that can have tabs to be window.open(URL, name), omitting the specs argument.

I'm struggling to understand how browser windows that have tabs differ from those that can't have tabs.

Definitely looking to learn from the community! Thanks for any thoughts.

about 4 years ago · Juan Pablo Isaza
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