HTML target =“_ parent”

问题描述 投票:0回答:1

我将这个Iframe放在我的网站上。问题是当您单击它在新选项卡中打开的链接时。我想在一个灯箱中打开它,所以它不会离开我的网站。我尝试添加target =“_ parent”但它没有用。我正在尝试做什么?

<iframe width="500" scrolling="no" height="400" frameborder="0" target="_parent" src="https://www.freemedicarereport.com/comparison_form/aaibsolutions.com?bg_color=9DB3DC&amp;cta_color=E6EBE0&amp;plan=F"> </iframe><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div><div class="tve_iframe_cover"></div>
html html5 web iframe
1个回答
1
投票

target是链接的属性,而不是包含链接的框架。

如果要在单击链接时触发灯箱,则需要更改链接以执行此操作。

© www.soinside.com 2019 - 2024. All rights reserved.