Solved

IFRAME Target

Posted on 2004-08-06
15
601 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
  • 5
  • 5
  • 5
15 Comments
 
LVL 7

Accepted Solution

by:
zac_charles earned 125 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now