Interviews1 answer
How to Disable Right Click using JQuery?
1 Answer
With the given code you can simpply disable the Right Click on hole of the page. However you can also disable right click on particular element.
$(document).bind('contextmenu', function (e) {
e.preventDefault();
alert('Right Click is not allowed');
});
SatishPosted Jun 12, 2014, 4:48 AM EDT
