如何获得IE关事件
如何获得IE关事件
这个就需要js了
<script language= "javascript ">
window.onbeforeunload = function() //author: meizz
{
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth-20;
if(b && window.event.clientY < 0 || window.event.altKey)
{
window.event.returnValue = "确认关闭当前窗体么? ";
}
}
</script>