JavaScript 屏蔽鼠标右键
2008-08-14 19:57:26 来源:WEB开发网核心提示:<script language="javaScript"> //锁鼠标右键和键盘CONTEXTMENU键 function click(e) { if (document.all) { if (event.button==2||event.button==3) { onc
<script language="javaScript">
//锁鼠标右键和键盘CONTEXTMENU键
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
</script>
Tags:JavaScript 屏蔽 鼠标
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接