1 | $(document).ready(function(){ |
2 | $(document).bind("contextmenu",function(e){ |
3 | return false; |
4 | }); |
5 | }); | | | | | | | | |
We just need to bind the contextmenu event with the document element.
Method 2 (Send from one of the reader):
1 | $(document).ready(function(){ |
2 | $(document).bind("contextmenu",function(e){ |
3 | e.preventDefault(); |
4 | }); |
5 | }); | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
No comments:
Post a Comment