急!window.event.returnValue 的问题~! 在线等
window.onbeforeunload = function(event){
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth-20;
if(b && window.event.clientY < 0 || window.event.altKey)
{
window.event.returnValue = "我要离开";
}else{
//window.event.returnValue = "";
}
}
请问各位高手 怎么可要获取 window.event.returnValue = "我要离开"; 选择后的返回值