The two methods are used to refresh the parent window, but there are still some mysteries.
Window.Opener.Location. Reload (); when this method forces the parent window, a confirmation dialog box is displayed in some ie browsers (such as high security settings, it prompts if you want to refresh the page again. This is a depressing thing. I later replaced this method with window.Opener.Location. Href = Window.Opener.Location. Href;
This will not happen.
Window.OpenerIt actually refers to the parent window of the current window. For example, one. jsp opens two. jsp through popupwindow, which is the window in two. jsp.OpenerIt refers to one. jsp, so windows can be used in two. jsp.OpenerCall any method in one. jsp to implement interaction between one. jsp and two. jsp.
Note:Window.Opener.Location. Href is just a link. To submit a parent window, you must call window.Opener. Action = "" and window.Opener. Submit (); method, but unfortunately this sectionCodeCannot run in Firefox. The solution is to write a submitted function in the parent window and use window in the Child Window.Opener. Functionname () is called.
Window.OpenerTo determine the status of the parent window. If the parent window is closed or updated, an error will occur. The solution is to add the following verification if (window.Opener&&! Window.Opener. Closed)