JS中设置window.location.href跳转无效

window.event.returnValue就是这个事件的返回值

window.location.href="login.jsp";    
window.event.returnValue=false; 
原文地址:https://www.cnblogs.com/kelly07/p/8439433.html