<script language=javascript>
function check()
{
if (event.clientX>document.body.clientWidth-20 && event.clientY<0||event.altKey)
alert("close")
}
</script>
</head><body onbeforeunload="check();">
</body>
function check()
{
if (event.clientX>document.body.clientWidth-20 && event.clientY<0||event.altKey)
alert("close")
}
</script>
</head><body onbeforeunload="check();">
</body>
不过按你的方法关闭提交一表单到另外一个页面操作怎么没反应呀?