你好,
1. 禁用浏览器 默认右键菜单
document.oncontextmenu = new Function("return false")2.监听键盘事件
document.onkeydown = document.onkeyup = document.onkeypress = function(event) {var e = event || window.event || arguments.callee.caller.arguments[0]
if (e && e.keyCode == 123) {
alert('禁止打开控制台')
e.returnValue = false return (false)
}
}