Solved

IFRAME Target

Posted on 2004-08-06
15
599 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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 …

708 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

18 Experts available now in Live!

Get 1:1 Help Now