Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!