Link to home
Start Free TrialLog in
Avatar of ES-Components
ES-ComponentsFlag for United States of America

asked on

How To Redirect a URL in an Iframe?

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...
Rick
Redirect.doc
Avatar of dpearson
dpearson

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.

Doug
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ES-Components

ASKER

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

This feature we were looking for is no longer needed.
Thank you...