如何使用js屏蔽鼠标右键

<script type="text/javascript">
            /*
               //for ie6,7,8,9,10 and webkit and opera
                 document.oncontextmenu = function () {
                 window.event.returnValue = false;
                 }
           */
              //for ie6,7,8,9,10 and webkit and opera and firefox
                 document.oncontextmenu=function(e){
                 return false;
                 }
</script>




http://wangye.org/blog/archives/932/
原文地址:https://www.cnblogs.com/xiaolang1/p/4345073.html