<script>
function IsClose()
{
if(confirm("是否退出系统?"))
{
return true;
}
return false;
}
</script>
<body οnbefοreunlοad="javascript:if(IsClose()){return false;}else{return true}">
--------------------------------------------------------
<script>
function winclose(){
return '是否退出系统?';
}
</script>
<body οnbefοreunlοad="return winclose()" >
</body>