0

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 code?

Thanks.

Shankar
  • 31
  • 5

1 Answers1

2

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 .

Community
  • 1
  • 1
kay
  • 24,516
  • 10
  • 94
  • 138
  • Thanks kay.I want to find the url navigations occurring in the iframe. How to achieve this.Can you help me? – Shankar Mar 03 '13 at 15:23
  • @Shankar, you should open another question, so that other user's may participate, too. – kay Mar 03 '13 at 17:06