Refresh Parent Window

Posted on 2005-04-06
Last Modified: 2012-06-27
I don't know if this is the right area or if it would be html, but in either case this is my problem. I have an asp page with two iframes with forms in them and what I want to do is after the user submits one of the forms I want to refresh the parent window (the one containing the two iframes) because there will be changes reflected in it.

I do not know how to do this. Any help would be appreciated. Thanks.
Question by:fisherbrsnch00
    LVL 23

    Accepted Solution

    <a href="#" onClick="parent.document.location=parent.document.location">Refresh</a>
    that will refresh the Main Parent Window.

    so when you dont writing to database/Form Submit  you can put this line right under it....


    LVL 15

    Expert Comment

    If you just want the form in the iframe to submit such that the result of the submission will fill the parent window (instead of just the iframe), you can try something like:

        <form ... target="_parent">


        <form ... target="_top">

    Author Comment

    adilkhan, that works great. I had a little trouble because I was attempting to response.redirect after the
    <Script>  parent.document.location=parent.document.location </Script>, but once I got rid of it everything is perfect. Thank you so much!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 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

    17 Experts available now in Live!

    Get 1:1 Help Now