• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

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?
0
Matthew Tandy
Asked:
Matthew Tandy
  • 5
  • 5
  • 5
1 Solution
 
zac_charlesCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now