Forum Moderators: open

Message Too Old, No Replies

Force Refresh - Parent Page/Pop Up Window

Force Refresh

         

Samir

10:47 am on Aug 29, 2003 (gmt 0)



Hi...I have a javascript window that when opened, causes the parent page to stop loading, i.e. animated gifs stop 'animating', images not yet loaded won't load until page refreshed.

What is the right way to force the parent page to refresh, say on closing the pop-up window, or preferably, not to suspend at all? Am a newbie so pls take into consideration when suggesting fix :o)

Many thanks.

korkus2000

12:08 pm on Aug 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using this in the head of the pop up html:

<script>
function parentReload(){
window.opener.history.go(0);
}

</script>

Then add this to the body tag of the pop up html:

<body onload="parentReload()">

This will fire the reload when the pop up finishes loading.

You can also return a false from the pop-up call in the parent to kick off the gifs and loading.