Tag : jQuery to disable mouse right click on images only in asp.net web page to prevent images from being copied

Home » Posts tagged jQuery to disable mouse right click on images only in asp.net web page to prevent images from being copied"

Disable Right Click on All Images <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Disable right click on images on asp.net web page using jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> $(function () { $('img').on("contextmenu", function () { return false; }); }); </script> </head> <body> <form id="form1" runat="server"> <div> <img src="http://c.saavncdn.com/801/Kick-Hindi-2014-500×500.jpg" /> <br /> This is dummy text<br /> This is ..

Read more