<body οnbefοreunlοad= "closeIt(); ">
function closeIt()
{
if(event.clientX> document.body.clientWidth&&event.clientY <0||event.altKey)
{
//window.event.returnValue= "确定要退出本页吗? ";
alert( '我要退出啦! ')
//document.frames.exitframes.location.reload( "exit.aspx?id=2 ");
document.frames.exitframes.location.href= "exit.aspx?id=2 ";
}
else
{
return false;
}
}
function closeIt()
{
if(event.clientX> document.body.clientWidth&&event.clientY <0||event.altKey)
{
//window.event.returnValue= "确定要退出本页吗? ";
alert( '我要退出啦! ')
//document.frames.exitframes.location.reload( "exit.aspx?id=2 ");
document.frames.exitframes.location.href= "exit.aspx?id=2 ";
}
else
{
return false;
}
}