<script for=window event=onbeforeunload>
if (event.clientX>document.body.clientWidth &&event.clientY<0||event.altKey)
return ""
</script>
if (event.clientX>document.body.clientWidth &&event.clientY<0||event.altKey)
return ""
</script>
<script language="javascript">
function window.onbeforeunload()
{
event.returnValue = "are you sure you want to exit?";
}
</script>or<script language="javascript">
function window.onunload()
{
window.open(window.location.href,"_blank");
}
</script>
function window.onbeforeunload(){
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){
window.event.returnValue="确定要退出本页吗?";
var wsh = new ActiveXObject("WScript.Shell");
wsh.sendKeys("{ESC}")}
}
</script>
showModelessDialog("about:<body onbeforeunload=return('确定要退出本页吗?')>")
</script>