English
<!--Put the code into the <body> area--> Right-click and try to see the effect! <script> <!-- function offkey() { iekey=event.keyCode; if(iekey==16) { res=confirm("Are you sure you want to exit???!!!") if (res !="0") { window.top.close() } } } function yh(){ if (navigator.appName = = 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { res=confirm("Are you sure you want to exit???!!!") if (res !="0 ") { window.top.close() } } } document.onkeydown=offkey document.onmousedown=yh; //--> </script>