Solved

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

Posted on 2008-10-29
3
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…
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 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…

726 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