记录一下 防止忘了
<script>
function CloseOpen(event) {
if(event.clientX<=0 && event.clientY<0) {
alert("关闭");
}
else
{
alert("刷新或离开");
}
}
</script>
<body οnunlοad="CloseOpen(event)">
</BODY>
记录一下 防止忘了
<script>
function CloseOpen(event) {
if(event.clientX<=0 && event.clientY<0) {
alert("关闭");
}
else
{
alert("刷新或离开");
}
}
</script>
<body οnunlοad="CloseOpen(event)">
</BODY>