Home > Article > Web Front-end > Usage of js href_javascript skills
"window.location.href" and "location.href" are the jumps to this page
"parent.location.href" are the jumps to the previous page
"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 A's iframe, if the js in D writes
"window.location.href", "location.href": D page jumps to
"parent.location.href": C page Jump
"top.location.href": Jump to page A
If there is a form in page D,