JS中设置window.location.href跳转无效 window.event.returnValue就是这个事件的返回值 window.location.href="login.jsp"; window.event.returnValue=false;