Pronunciation / adjective
Bringing something good and unforseen.
    Skip Navigation Links > Code Repository

Refresh a frame from a popup window


Refresh a frame from a popup window

If a popup window has been opened from another page that utilizes frames this script will refresh the frame that the popup was opened from.

From a regular popup window:
  1. if (opener && !opener.closed) opener.location.reload(1);

If the popup window itself is a frameset:
  1. top.opener.location.reload(1);

To close the popup and refresh the parent:
  1. opener.location.reload(1);window.close;

Microsoft Certified Professional   © 2018 Fortunate.  All rights reserved.