jQuery禁用右键点击

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

$(document).ready(function() {
//catch the right-click context menu
$(document).bind("contextmenu",function(e) {
//warning prompt - optional
alert("No right-clicking!");
 
//delete the default context menu
return false;
});
});