Solved

IFRAME Target

Posted on 2004-08-06
15
605 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
alert on input text 2 23
Validating Date 4 28
Check input text, Number 6 26
aria difference 2 12
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

685 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