<html>
<head><title></title>
<script>
    
function window_onkeypress()
    
{
        alert(window.event.button);
        
if(window.event.keyCode == 27)
        
{
            window.close();
        }

    }

</script>
<body onMouseDown="window_onkeypress()">
</body>
</head>
<body onMouseDown="window_onkeypress()">
</body>
</html>
posted on 2007-01-08 17:58  everlasting  阅读(207)  评论(0编辑  收藏  举报