1

I have a link inside an iframe that I want to go to the parent window. I set the target to _parent, but it opens in an entirely new tab, instead of in the parent page.

<iframe>
    <a href="" target="_parent">go to parent window!</a>
</iframe>

This is in JSFiddle, so I thought maybe they were intentionally blocking target="_parent", but I can't see how.

Here's the link to the JSFiddle. Click on the button that says "Continue to next page of demo »" to see the behavior I'm describing.

brentonstrine
  • 21,694
  • 25
  • 74
  • 120

2 Answers2

0

try this in your head

<base target="_parent" />
prospector
  • 3,389
  • 1
  • 23
  • 40
0

just use target="_self" instead of "_parent"

http://jsfiddle.net/eapo/k38199k5/8/

eapo
  • 1,053
  • 1
  • 19
  • 40