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

264
Vistas
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 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