Instance 008 when you close a popup window, refresh the parent window instance descriptionwhen the popup window is closed, the parent window is refreshed at the same time, which is typically used to get the latest data from the parent window. Technical EssentialsThis example applies the window.open () statement to open a new window and applies the opener property in a new window, which returns a reference that specifies the Window object that opens the window. Syntax: Window.opener Window.opener. Methods window.opener. Propertiesfunction: Returns a Window object. The opener property is associated with the parent window that opens the window, and when you access the opener property in the child window, the parent window is returned, which allows you to use the methods and properties in the parent window object. the Reload () method is used to refresh the specified window. implementation Process(1) To eject the window and implement close refresh of the parent window's page new.html
(2) main window index.htmlNote: The content of the style tag is the knowledge of CSS, and we focus on the content within the script tag. So this example of ours is done.
JavaScript effect Instance 008-Refreshes the parent window when the popup window is closed