Solved

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

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
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…

690 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