jqueryexample.com jQuery- Disabling right click - jqueryexample.com

jQuery- Disabling right click by jqueryexample

This Code Snippet to disable the mouse right click function using jquery.In script we bind the contextmenu event with the document element.

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

Did you like this? Share it:

Discussion

No comments yet, be the first.

Leave a Comment