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. opener actually refers to the parent window of the current window, for example, one. JSP opens two through popupwindow. JSP, where is two. window in JSP. opener refers to one. JSP, so in two. windows can be used in JSP. opener calls any one. the methods in JSP implement one. JSP and two. JSP interaction.
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 call it through window. opener. functionname () in the subwindow.
Window. when using opener, you must 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)