Reputation: 175
I want jquery
or javascript
to access DOM
in Iframe
.
For example, I make a iframe to show amazon. then I wanna get a banner image link on amazon. Can I do this?
and I have one more problem. if I click amazon banner that is made a by _blank target on "a" Tag in a iframe, browser make a new tab. but I wanna see a new page in a iframe.
Upvotes: 1
Views: 65
Reputation: 780
You cannot do that if the origin of the iframe is different from the parent document : https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
Upvotes: 2