Solved

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

Posted on 2008-10-29
3
269 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

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

11 Experts available now in Live!

Get 1:1 Help Now