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

184
Vistas
How open link from iframe in new tab?

I have some link, and when I click on button I redirect it with help of event to another page

<div id="link"><a href="javascript:void(0);">Redirect</a></div>

 function redirectFromIframe() {
     window.top.location.href = "some_link"
  }

 let link = document.getElementById("link");
 link.addEventListener("click", redirectFromIframe, false);

All works fine, but if we want open it in new tab, we need to use next code, since we cannot use target_blank because link is voided

 window.open('some_link', '_blank');

So how we can use link from iframe and at the same time open in new tab

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