Now there is an emergency reporting system on hand. During the test, the system exits after the web system is successfully logged on, after checking a lot of information, I found a js solution to this problem. & lt; li & gt; & lt; ahref & quot; onclick & quot; javascript: lo...
Now there is an emergency reporting system on hand. During the test, there was a saying: "After the web system is successfully logged on, the system will exit, and the browser will still be able to go back to the system"
After checking a lot of information, I found a js solution to this problem.
Aspx '); event. returnValue = false; "> exit safely
Here, onclick = "javascript: location. replace ('login. aspx '); this Code restricts the exit of the browser.
Event. returnValue = false; "this code is mainly written for IE8, because the onclick event cannot be used in IE8.
Author: m191628677