Solved

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

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

707 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

13 Experts available now in Live!

Get 1:1 Help Now