jQuery simple implementation to disable the right click menu

  • 2020-05-12 02:15:14
  • OfStack

The code is very simple, here is no nonsense, directly on the code:


$(document).ready(function(){
    $(document).bind("contextmenu",function(e){
        return false;
    });
});

5 lines of code to do, simple, of course, friends can be free to expand, you can achieve the right menu to block the specified items.


Related articles: