"Window.location.href", "location.href" is this page jump
"Parent.location.href" is a page jump on the previous level
"Top.location.href" is the outermost page jump
To illustrate:
If a,b,c,d are Jsp,d is C iframe,c is B's iframe,b is an IFRAME, if D JS so write
"Window.location.href", "location.href": D page Jump
"Parent.location.href": C page Jump
"Top.location.href": a page jump
If there is a form on the D page,
<form>: After form submission D page jump
<form target= "_blank";: New page pops up after form submission
<form target= "_parent";: C page jump after form submission
<form target= "_top" >: Form submitted after a page jump
About page refreshes, this is written in the D page:
"Parent.location.reload ();": C page Refresh (of course, you can also use the opener object of a child window to get the object of the parent window: Window.opener.document.location.reload (); )
"Top.location.reload ();": a page refresh
JS page jump problem (jump to parent page, outermost page, this page)