IFRAME Target

I have an iframe on my page, and when i click a link i want it to make the whole page change, not just the iframe.

How can i go about doing this?
LVL 1
Matthew TandyAsked:
Who is Participating?
 
zac_charlesConnect With a Mentor Commented:
On the page inside the iframe you would have something like this:
<a href="somewhere.html">LinkText</a>

You need to add a target, like this:
<a href="somewhere.html" target="_parent">LinkText</a>


/ Zac Charles
0
 
Matthew TandyAuthor Commented:
oh yeah it is working, but ive got a main page, with an iframe and an iframe inside that...

is it possible to go to not the parent but the level above if you know what i mean?
0
 
zac_charlesCommented:
yea i know what you mean, hang around, ill just do some testing...
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
knightEknightCommented:
use target="_top" instead of "_parent"
0
 
Matthew TandyAuthor Commented:
cheers mate, ill give you the points whatever, cuz i asked it wrong, and you answered correctly what i asked
0
 
zac_charlesCommented:
you should split them in half because i answered your original question.
0
 
knightEknightCommented:
i agree
0
 
Matthew TandyAuthor Commented:
how can i do that?
0
 
Matthew TandyAuthor Commented:
oh btw didnt see what you had put til after i posted that knightEknight
0
 
zac_charlesCommented:
by the wording of your post you did, but thats beside the point, i will answered your original question before knightEknight answered your seconds one, therefore we should get half the points each, and there is an option somewhere around this page that says split points....use the browser search to find it if you cant, its been too long since ive asked a question or seen anyway ask a question to remember where it is
0
 
knightEknightCommented:
click on the "accept" button next to zac's comment ... then the split option will appear.
0
 
zac_charlesCommented:
there ya go ;)
0
 
knightEknightCommented:
I see now that I was late to the party, but FYI _top will work from any depth of frames your link is burried in :)
0
 
Matthew TandyAuthor Commented:
i did accept, but there was no option to split...... now what?
0
 
knightEknightCommented:
no worries :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.