简体   繁体   中英

Redirect inside of iframe?

If I place iframe on my website, which links to another website, which isnt mine, and inside that iframe, on that website, someone clicks on a link that leads to another page, that redirection happens in my browsers main window, and not in iframe.

Is there any way I can make it so that It redirects inside iframe?

I believe that it's not possible because you don't have control over what is loaded inside the iframe. So, if there is any anchor link that has target="_parent" , it's going to open the link in the parent frame.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM