What makes the iframe open new links inside the parent window?

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


In this iframe, new links are opened inside the parent window.

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


In this iframe, no new links are opened inside the parent window.

But the two iframe codes look the same. What's the actual trick of the different behavior?


source to share

1 answer

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

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


Magic target

: http://jsfiddle.net/DerekL/wxcufehg/



All Articles