当然,也可以通过设置浏览器的安全级别到最高级别来解决问题。
代码如下:
<script>
document.oncontextmenu = function(){
return false;
}
document.onkeydown = function(){
if (event.ctrlKey && window.event.keyCode==67){
return false;
}
}
document.body.oncopy = function (){
return false;
}
document.onselectstart = function(){
//return false;
}
</script>