Many web pages have a frame structure. In many cases, button click events or links are used to jump out of the frame and go to other interfaces. For example, click "Logout" to return to the login interface.
1. There are several ways to jump out of the frame by running a script:
1."
2."
3.
4. Response.Write("<script>window.parent.opener=null;window.top.close();</script>")
Response.Write("<script>window.open ('index.aspx','');</script>")
This method will first close the original frame window and then reopen a new window. This is applicable when the browser settings are changed in many functional interfaces and the default settings are used when returning to the login interface.
2. The link jumps out of the frame
This situation is very simple, just add the target="_top" attribute.
It will jump to other pages.