Solved

IFRAME Target

Posted on 2004-08-06
15
602 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Safari On Gmail only html 12 58
Convert html page to a php post email form automatically? 10 55
Not seen Link button 5 40
HTML5 frame 5 26
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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…

821 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