Excerpt _ How to jump out of the framework

Source: Internet
Author: User

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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.