onmousedown is used in the body tag to listen for mouse events, but the events have no effect at all. Baidu later said that made event invalid. It is said that it is because of the width problem, but it has not worked yet. If you remove , you can use
.the code is as follows:
<!DOCTYPE html>
<html>
<head>
<title>objecjs20.html</title>
<script language="javascript" type="text/javascript">
<!--
function show_coords(e){
x=e.clientX;
y=e.clientY;
alert(e+"--X :"+x+",Y :"+y);
}
//-->
</script>
</head>
<body onmousedown="show_coords(e)">
<div height="100%" width="100%">fdjl</div>
</body>
</html>