<script type="text/javascript">
<!--
document.onmousedown = function (e) {
var e = e || window.event
alert("e" + e.button);
if (e.button == "2") {
alert("执行右键代码");
}
}
//-->
function right() {

var e = window.event;
alert(e.button);
if (e.button == "0") {
alert("左键");
} else {
alert("右键");
}
}
</script>

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-03-03
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-09-08
  • 2022-02-26
相关资源
相似解决方案