In this programming tutorial we will learn how to disable right click contextual menu in jquery. Jquery is a very powerful javascript library and makes things very easier to work with. So let's have a look over how to do so.
$(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; }); });So that's it, this above written jquery code snippet will disable right click contextual menu, moreover, it will also disable the contextual menu when you press key(Application Key) between the alt and ctrl keys in QWERTY keyboard of your pc.
I love your feedback.
0 comments:
Post a Comment