<script language=javascript> function window.onbeforeunload() { if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){ window.event.returnValue="确定要退出本页吗?"; new ActiveXObject("WScript.Shell").sendKeys("{ESC}")} } </script>会有一个安全提示.
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){
window.event.returnValue="确定要退出本页吗?";
new ActiveXObject("WScript.Shell").sendKeys("{ESC}")}
}
</script>会有一个安全提示.