小技巧(关闭浏览器提示)



    <script language="javascript">
     function IdentifyingPage(IdentifyingImage)
     {
     IdentifyingImage.src="../IdentifyingPage.aspx";
     }
    
 var bln= true;
 function RunOnBeforeUnload() {
    if (bln) {window.event.returnValue = '将丢失未保存的数据!';  
    } 
 }

    </script>


<body onbeforeunload="RunOnBeforeUnload()">

你可能感兴趣的:(浏览器)