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

263
Visualizações
Allowpopups in webview without opening a new window

I have added a new-window event listener to my webview, but it doesn't work unless I have allowpopups set on it. The thing is, when allowpopups is set, it automatically creates a new window which I don't want. Here's a snippet of my code:

view.addEventListener('new-window', (e) => {
  // I thought `preventDefault` could work, but it doesn't.
  e.preventDefault();
  // This function creates a new tab in the browser that I'm making
  createTab(e.url);
});

Is there a way to prevent the window from popping up?

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