Solved

Set the target of a link to display outside an <iframe>?

Posted on 2008-10-29
3
270 Views
Last Modified: 2013-12-13
Evening!

I have a contact form written in php embedded inside an <iframe> that resides in an existing web app. There's basically 3 parts:

1) the <iframe> that has a source of contactus.htm
2) contactus.htm posts to contactus_submit.php which returns results that populate the inside of the <iframe>
3) a link on contactus_submit.php that the user is shown after submitting the form that allows them to click the link to return to the home page.

Problem: How do I set the target of that link to be the parent element and not just re-populate the iframe with a new copy of the homepage? I.e., I want the <a href> link to literally redirect their entire browser back to www.domainurl.com, etc.

What would be the best way to accomplish such a task?

Thanks!
0
Comment
Question by:jmoriarty
3 Comments
 
LVL 44

Assisted Solution

by:scrathcyboy
scrathcyboy earned 200 total points
ID: 22838196
try these --

<A href= ...etc... target="top">
or try target="parent"

One of those should work, maybe both
0
 
LVL 6

Accepted Solution

by:
cr4ck3rj4ck earned 300 total points
ID: 22839080
This example should give you something to adapt to what you need:
<a href="http://www.google.com" target="_parent">Test</a>

Open in new window

0
 

Author Closing Comment

by:jmoriarty
ID: 31511546
That worked. Thanks
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

816 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

10 Experts available now in Live!

Get 1:1 Help Now