How to get iframe url

Asked

Viewed 556 times

0

I have an iframe that receives an "ex.com" address and this address when you enter it is already redirected to another link "ex.com?id=foo&exemplo=bar". i would like when iframe redirects, a javascript takes the new url of iframe and sends an Alert showing the id and example value or stores them in variables, as I will use these values.

  • The page inside the iframe is in the same domain as the page containing the iframe?

  • If it is another domain you have limitations of CORS and iso is only allowed if the page allows it, usually does not allow. You know if this page limits via CORS?

  • type I just want to take the link where iframe redirects , if it creates a page and in it collects a redirect to any other place with a string at the end id=ddsg&example=dsgs ai puts it in an iframe and takes the id value and example don’t know no ;) I’m new at this I’m studying understand understand...

  • Take a look here about CORS. Name the page you want to use if you can’t see if it’s protected, but it probably won’t allow you access to what you want and there’s no turning back.

  • I created a form that makes a request get to another example page? id=355345&name=Fabio and this from is inside an iframe, I wanted to take the id and name value and put in an Alert so "355345//Fabio" and then the page(not iframe) will be redirected to any link .

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.