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

233
Vistas
Angular - How to access iframe content inside a external domain

I'm trying to access an external iframe content inside the parent html, is it possible? I already trying multiple ways to access those content, take a look at my code below:

Trying to access with ViewChild inside onLoad function of the iframe

Code

Result: Result

At this moment looks like a good information, but I need to access the data inside #document tag, so I tried the following code at the ngOnInit function.

NgOnInit Function

Result

So in this case, I can't access the body content tag, how can I do this?

And, my final tried, was with this code Code

Result

With this code I get cross origin error.

My final question is, is it possible access an iframe content in a external domain?

Thanks!

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