window.οnbefοreunlοad=function (){
alert("===οnbefοreunlοad===");
if(event.clientX>document.body.clientWidth && event.clientY < 0 || event.altKey){
alert("你關閉了瀏覽器");
sessionStorage.clear();
}else{
alert("你正在刷新頁面");
sessionStorage.clear();
}
}