SPS Home    >   Dgreath    >   JavaScript Code Library    >   Window Refresh

JAVASCRIPT CODE TO REFRESH PARENT WINDOW FROM CHILD

The following script will refresh the parent window from the child.

Another version is shown which will work directly embedded in markup.

window.opener.location holds the url of the page that opened the child window. Loading this value back into itself forces the parent to reload.
JS Code for Head Container


  

JS Code for Body Container