views:

14

answers:

1

Hello, I have document with iframe. I have no problem setting iframe's location by using this:

  $('#iframe').attr('src', 'http://www.another-domain-site.com');

When user navigates a few pages in that iframe, then I want to get back URL where he ends up. But when the SRC attribute of the iframe never changes from what I initially have set.

Is there a way how to get iframe's location when it changes or there is no way around same-domain policy ?

I have one more question on my mind considering question above - is there a way how browser could ask user for permission to allow this type of requests ? The same way Chrome extensions ask for extended permissions ?

+1  A: 

I am sorry, after more searching I've found someone ask exactly same question here and the short answer is: "Its not possible".

Frodik