How to Disable Right Click Using jQuery

When we talk about website security from Front End site, so many peoples will says first to disable right click. Today in this article we will write jquery script to disable the right click, It’s very simple with using jquery we can easily disable right-click.


<h1>Disable Right Click With jQuery</h1>

 

$(document).on("contextmenu", function(e) {
  alert('right click has been disabled');
  return false;
});

Leave a Reply