<html>
<head>
<title></title>
<script>
function testMouse(e) {      if (e.button==1) {alert("左键 : " + e.clientX + ", " + e.clientY);}
      if (e.button==2) {alert("右键 : " + e.clientX + ", " + e.clientY);}
}
</script>
</head>
<body onMouseDown="testMouse(event)">
sdasdsdj
</body>
</html>