Jump to content

refresh page before header()


robert_gsfame

Recommended Posts

Is it possible to refresh parent page before header()

So let say i have 2 page, and 1st page is parent page and the other is pop up window

 

Assume that there is an execution of certain script at the pop up window and it redirected to another page and redirected back again to that page

 

As certain data being displayed in both pop up window and parent page..so i wish to have parent page being refreshed once pop up window execute header()

 

is that possible??

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/219200-refresh-page-before-header/
Share on other sites

if i understand the question:

 

what i typically do is add javascript in the child window to refresh the parent window. after the popup redirects, i add javascript in the body tag of the pop-up html like this:

 

<body onload='window.opener.location.reload();'>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.