js事件驱动,这段代码怎能不能执行

<!doctype html>



js事件驱动
<br> function test(e){<br> window.alert(e.clientX+&quot; &quot;+e.clientY);<br> }</p> <pre><code>&lt;/script&gt; </code></pre> <p></head><br> <body onmousedown="test(event)" ><br> </body><br> </html></p>

说实话 你这代码能看懂的是---------------------------------------神------------------------------------------------

body里面没有内容,高度为0,点击不到body标签,改为document
body高度为0但是背景色填充整个浏览器


<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <title>js事件驱动</title>
    <script language="javascript" type="text/javascript">
        function test(e) {
            e = e || window.event
            window.alert(e.clientX + " " + e.clientY);
        }
        document.onclick=test

    </script>
</head>
<body onmousedown="test(event)">
</body>
</html>