SoFunction
Updated on 2025-03-06

The problem of jumping js page (jump to parent page, outermost page, this page)

"", "" is a jump to this page

""is the previous page jump

""is the outermost page jump

Give an example:

If A, B, C, D are all jsp, D is C's iframe, C is B's iframe, B is A's iframe, if js is written in D

"", "": D page jump

"": Page C jump

"": Page A jump

If there is a form on page D,

<form>: D page jumps after form is submitted

<form target="_blank">: A new page pops up after form is submitted

<form target="_parent">: The C page jumps after form is submitted

<form target="_top"> : Page A jump after form is submitted

Regarding page refresh, the following is written in page D:

"();": C page refresh (of course, you can also use the opener object of the child window to obtain the parent window object: (); )

"();": Page A refresh