Skip to content Skip to sidebar Skip to footer

How To Inject The Javascript Code Into Iframe?

I have an iframe(src is google.com)..I want to inject the javascript code for find the list of anchor tags present in the iframe from parent to iframe.Is it possible to inject the

Solution 1:

It is not possible because of the same-origin policy.

See http://en.wikipedia.org/wiki/Same_origin_policy.

And because you do not have access the Google's server configuration, you won't find any help here either: Ways to circumvent the same-origin policy .

Post a Comment for "How To Inject The Javascript Code Into Iframe?"