?
Solved

IFRAME Target

Posted on 2004-08-06
15
Medium Priority
?
614 Views
Last Modified: 2010-04-09
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
Comment
Question by:Matthew Tandy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 5
15 Comments
 
LVL 7

Accepted Solution

by:
zac_charles earned 500 total points
ID: 11734604
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
 
LVL 1

Author Comment

by:Matthew Tandy
ID: 11734936
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
 
LVL 7

Expert Comment

by:zac_charles
ID: 11734953
yea i know what you mean, hang around, ill just do some testing...
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 33

Expert Comment

by:knightEknight
ID: 11734964
use target="_top" instead of "_parent"
0
 
LVL 1

Author Comment

by:Matthew Tandy
ID: 11734965
cheers mate, ill give you the points whatever, cuz i asked it wrong, and you answered correctly what i asked
0
 
LVL 7

Expert Comment

by:zac_charles
ID: 11734974
you should split them in half because i answered your original question.
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 11734976
i agree
0
 
LVL 1

Author Comment

by:Matthew Tandy
ID: 11734985
how can i do that?
0
 
LVL 1

Author Comment

by:Matthew Tandy
ID: 11734988
oh btw didnt see what you had put til after i posted that knightEknight
0
 
LVL 7

Expert Comment

by:zac_charles
ID: 11735006
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
 
LVL 33

Expert Comment

by:knightEknight
ID: 11735019
click on the "accept" button next to zac's comment ... then the split option will appear.
0
 
LVL 7

Expert Comment

by:zac_charles
ID: 11735024
there ya go ;)
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 11735028
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
 
LVL 1

Author Comment

by:Matthew Tandy
ID: 11735031
i did accept, but there was no option to split...... now what?
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 11735050
no worries :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question