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

240
Vistas
Safari Mobile - Still getting prompted to block popup despite setting block popup to false

In my safari browser on iPhone 11, I have "block popups" turned off. However with the following line of angular code, I am still getting prompted a pop-up message:

This site is attempting to open pop-up window

Here is the line of code I am using on click:

this.service1.url(this.Method1()).subscribe( response => { window.open('www.google.com', '_blank');} );

What am I missing, or is there a workaround?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This might be occurring if the opening of the new tab isn't the result of a user initiated event, or if there's an async delay after the user event

Details from JavaScript.info

// Most browsers block popups if they are called outside of user-triggered event handlers like onclick.

// For example:

// popup blocked
window.open('https://javascript.info');

// popup allowed
button.onclick = () => {
  window.open('https://javascript.info');
};
// This way users are somewhat protected from unwanted popups, but the functionality is not disabled totally.
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