Is it possible to prevent RIGHT CLICK option for IMAGES which we use in web page.
Disable right click menu in html page using jquery. JavaScript Code: $(document). bind("contextmenu",function(e){ return false; });
Also disable the F12 , Ctrl + Shift + I , Ctrl + Shift + J and Ctrl + U keys. Instead of the contextmenu event, You can also add the oncontextmenu handler into the HTML body tag to disable the right click.
$(document).ready(function() { $("img").on("contextmenu",function(){ return false; }); });
I think this should help. Trick is to bind the contextmenu event.
<script type="text/javascript" language="javascript"> $(function() { $(this).bind("contextmenu", function(e) { e.preventDefault(); }); }); </script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With