网页禁止复制屏蔽鼠标右键的解决办法

在地址栏中输入 

javascript:var targetEvents = ['oncontextmenu', 'onmousedown', 'ondragstart', 'onselectstart', 'onselect', 'oncopy', 'onbeforecopy', 'onbeforecopy', 'onmouseup'];$.each(targetEvents, function(index, value) {$('body').removeAttr(value);document[value] = function(){return true;};});

 

ps: 很多浏览器好像不让在地址栏中复制javascript:这几个关键字 需要自己手动输入

posted on 2013-01-16 23:47  return null;  阅读(140)  评论(0编辑  收藏  举报