How To Redirect a URL in an Iframe?

Posted on 2014-07-17
Last Modified: 2014-08-22
I am using Dreamweaver to edit and update a dynamic table.
I have a webpage with a two column table.
Column A has the dynamic table with all the records.
Column B has an iframe that displays the webpage to be updated with a submit/update button.

Column A has a hyperlink that when clicked opens the record to be updated in the iframe in Column B
When I click the Submit/udate button in the iframe, the record gets updated and the requested redirect URL
opens in the iframe. I do not want it to open in the iframe. I want it to redirect it to the webpage that I am on
OR (refresh the page?) Is this possible to do?

I attached the code for the update page that appears in the iframe and high-lighted in yellow
where the redirect URL is supposed to go.

Any help will be greatly appreciated.

Thank you...
Question by:ES-Components
    LVL 26

    Expert Comment

    I think you can set the window.parent.location from within the iframe.  Something like this:

    window.parent.location.href = newURL ;

    This would be in JavaScript - not sure how you enter that within DreamWeaver, but I'm sure it's possible.

    LVL 75

    Accepted Solution

    Just add target="_top" or target="_parent" to the hyperlinks that need to open in the parent window

    Author Comment

    I've requested that this question be deleted for the following reason:

    This feature we were looking for is no longer needed.

    Author Closing Comment

    Thank you...

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    734 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

    20 Experts available now in Live!

    Get 1:1 Help Now