JS click to exit the system

Source: Internet
Author: User

JS implementation: Click to exit the system. A prompt box is displayed. Click "OK" to return to the corresponding page. Click "cancel" and keep it on the current page.

In Index. php page write JS Code: <� "http://www.2cto.com/kf/ware/vc/" target = "_ blank" class = "keylink"> vcD4KPHA + Jmx0O3NjcmlwdCBsYW5ndWFnZT0 = "javascript" type = "text/javascript">

Function logout (){

// If (confirm ("are you sure you want to exit the system? "))

Top. location = "Login. php ";

Return false;

}

Put an exit system. When you click the exit system button, the Index. php interface is closed and jumps to the Login. php interface.

Exit System

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.