簡體   English   中英

是什么導致iframe在父窗口中打開新鏈接?

[英]What causes an iframe to open new links inside parent window?

<iframe src="http://astore.amazon.com/itbumobile-20?wmode=transparent" width="100%" height="6000" frameborder="0" scrolling="no"></iframe>

在此iframe新鏈接的父窗口中打開。

<iframe src="http://www.w3schools.com" width="100%" height="6000" frameborder="0" scrolling="no" wmode="Opaque"></iframe>

在此iframe中,新窗口中的新鏈接打開。

但是兩個iframe編碼看起來是一樣的。 不同行為的實際訣竅是什么?

<a href="http://en.wikipedia.org" target="_top">Top</a>

<a href="http://en.wikipedia.org" target="_self">Self</a>

target的魔力: http//jsfiddle.net/DerekL/wxcufehg/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM