首页 > Web开发 > 详细

如何使用js屏蔽鼠标右键

时间:2015-03-17 19:52:08      阅读:232      评论:0      收藏:0      [点我收藏+]
<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/

如何使用js屏蔽鼠标右键

原文:http://www.cnblogs.com/xiaolang1/p/4345073.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!