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 ().