JS page jump Problem (jump to the parent page, outermost page, this page) _javascript tips
Source: Internet
Author: User
"Window.location.href", "location.href" is this page to jump
"Parent.location.href" is a page jump from the previous layer
"Top.location.href" is the outermost page jump
An example is provided:
If A,b,c,d is Jsp,d is C iframe,c is B iframe,b is an iframe of a, 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 in the D page,
<FORM>: Form submitted after D page jump
<form target= "_blank": Form submitted after the new page pop-up
<form target= "_parent": Form submitted after C page jump
<form target= "_top" >: Form submitted after a page jump
About page refreshes, the D page reads:
"Parent.location.reload ();": C page Refresh (of course, you can also use the child window's opener object to get the parent window object: Window.opener.document.location.reload (); )
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.