Copy Code code as follows:
$ ("#saveInfo"). Show ();
SetTimeout (' $ (' #saveInfo '). Hide (); ', 3000;
if (opener&&!opener.closed) {
Opener.location.reload (TRUE);
}
SetTimeout: How long does it take to implement the method, specific use: http://www.jb51.net/article/35535.htm
Opener: Refers to parent to express the parents window, such as a page using an IFRAME or frame to call B page, then a page is the window is the B page parent. In JS, Window.opener is just a reference to the pop-up window's parent window. For example: a.html, by clicking the button and so on to window.open out a new window b.html. Then in b.html, we can use Window.opener (omit write as opener) to reference a.html, including a.html document and other objects, manipulate a.html content.
If this reference fails, then NULL is returned. Therefore, before calling the opener object, you must first determine whether the object is null, otherwise the "object is empty or does not exist" JS error.