简体   繁体   中英

Redirect parent from iFrame

在iframe中单击网址后,如何重定向父窗口?

Setting a link's target property to _top will cause the link to open in the topmost frame; setting it to _parent will open it in the parent frame.

<a href="index.html" target="_parent">Open link in parent frame</a>

If that's not the correct answer, please clarify what you mean.

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