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

232
Visualizações
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 à 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