简体   繁体   中英

target frame in iframe (target=“_blank” not working)

I have a small problem. I'm using iframe to insert the banner (with link to the outside website).

<iframe src="http://wifi.tucado.com/ads/001.html" name="i001" target="_blank" frameset frameborder=0 id="i001" scrolling="no"></iframe>

The problem I have is when I click on the banner INSIDE the frame it opens a page INSIDE a frame and I want it to open it in new window (or at least in the parent one). Is there any way to do it without js or jquery? If not, what should I do in jquery to make it working? I was trying to find an answer here, but found just very specific questions which don't face my problem directly. Thanks for any help.

如果您可以控制在iFrame中加载的源文件( http://wifi.tucado.com/ads/001.html ),请尝试在其中的链接中添加target="_top"target="_blank"

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