"Window. location. href" and "location. href" indicate the current page Jump.
"Parent. location. href" is the previous page Jump
"Top. location. href" is the outermost page Jump
Example:
If A, B, C, and D are all jsp, D is the iframe of C, C is the iframe of B, and B is the iframe of A, if js in D is written like this
"Window. location. href", "location. href": D page Jump
"Parent. location. href": C page Jump
"Top. location. href": A page Jump
If form exists on Page D,
<Form>: Jump to the D page after the form is submitted
<Form target = "_ blank">: a new page is displayed after the form is submitted.
<Form target = "_ parent">: C page jump after form is submitted
<Form target = "_ top">: Jump to page A after form is submitted
For page refresh, write the following in page D:
"Parent. location. reload (); ": refreshes the C page (of course, you can also use the opener object of the Child Window to obtain the parent window object: zookeeper opener.doc ument. location. reload ();)
"Top. location. reload ();": page A is refreshed.