Many Web pages have a framework structure. In many cases, you can click an event or link through a button to jump out of the framework and go to other interfaces. For example, click "log out" to return to the logon page.
1. There are several ways to exit the framework by running the script:
1. <script language = JavaScript> window. Open ('login. aspx ',' _ top') </SCRIPT>"
2. <script language = JavaScript> window. Open ('login. aspx ',' _ parent') </SCRIPT>"
3. <script language = JavaScript> window. Parent. Location. href = 'login. aspx '</SCRIPT>
4. response. Write ("<SCRIPT> alert ('Update successful! '); Top. Location. href = 'index. aspx'; </SCRIPT> ");
5. response. Write ("<SCRIPT> window. Parent. Opener = NULL; window. Top. Close (); </SCRIPT> ")
Response. Write ("<SCRIPT> window. Open ('index. aspx ',''); </SCRIPT> ")
In this method, the original framework window is closed and a new window is opened. This method is applicable when the browser is changed in many functional interfaces and the default settings are used in the logon interface.
Ii. Link jump out of the framework
This situation is simple. You can add the target = "_ top" attribute.