window.event.returnValue就是这个事件的返回值
window.location.href="login.jsp"; window.event.returnValue=false;
本文介绍如何在JavaScript中设置事件的返回值,并演示了使用window.location.href进行页面跳转的方法。通过设置window.event.returnValue为false,可以阻止默认事件行为。
window.event.returnValue就是这个事件的返回值
window.location.href="login.jsp"; window.event.returnValue=false;
转载于:https://www.cnblogs.com/kelly07/p/8439433.html

被折叠的 条评论
为什么被折叠?