禁止右键:
<body oncontextmenu="return false">
禁止左键:
<script language="javascript">
function click() {
if (event.button==1) {
alert('禁止点击左键')
}
}
document.onmousedown=click
</script>
禁止左右键:
<body oncontextmenu="return false" onselectstart="return false">
<body oncontextmenu="return false">
禁止左键:
<script language="javascript">
function click() {
if (event.button==1) {
alert('禁止点击左键')
}
}
document.onmousedown=click
</script>
禁止左右键:
<body oncontextmenu="return false" onselectstart="return false">
回复Comments
作者:
{commentrecontent}