Exit interface under frameset framework in ASP. NET to login interface

Source: Internet
Author: User

The boss of the system has to accept the request, but finally finds that there is a problem with "exit" in the system. I used IE7, and this version of browser gave me a lot of trouble. After a while, I tried to trick him into it. Now I have to hurry up with the project.
My exit is implemented in this way. jsCodeAs follows:
Window. Open ('login. aspx ');
Window. Opener = NULL;
Window. Close ();
As a result, you can open login. aspx on the logon page, but the main interface cannot be closed.
Result:
Window. Open ('login. aspx ',' _ parent ');
Window. Opener = NULL;
Window. Close ();
If you turn off the current main interface, you can also open the logon interface, but the interface is quite uncoordinated. You can see the following logon to know what is going on. However, you cannot log on again. The code for the logon button is as follows:
Window. Open ("Main. aspx", null, "toolbar = No, location = No, addressbar = No,
Menubar = No, resizable = Yes, status = No, top = 0, Left = 0, Height = 710, width = 1023 ");
Window. Opener = NULL;
Window. Open ('', '_ top ');
Window. Top. Close ();
Therefore, the null value in open () should be "", so that the current page can be closed and the home page can be opened.
The interface is not very pleasing to the eye.
Change to window. Top. Location. href = 'login. aspx.
Change: window. Parent. Opener = NULL; window. Parent. Close (); window. Open ('login. aspx ');
Finally, what I want is displayed.
The writing is a bit messy. But I still need to write down the main reason: The JS script is not skilled, and I am not familiar with window. open. I will upload the project tomorrow and write window. open ().

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.