window.onbeforeunload = function()
{
if(event.clientX>document.body.clientWidth && event.clientY<0 || event.altKey)
{
window.event.returnValue="并退出系统吗?";
}
}
window.onbeforeunload = function()
{
if(event.clientX>document.body.clientWidth && event.clientY<0 || event.altKey)
{
window.event.returnValue="并退出系统吗?";
}
}
转载于:https://www.cnblogs.com/snlfq2000/archive/2011/03/22/1991353.html