Disable Right Click by Users on images using jqeury(i.e. Restrict user from image copy)

Just place below script inside your <head> tag and enjoy...::

<script  type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js">
    </script>
<script type="text/javascript">
   $(document).ready(function () {
       $('img').bind('contextmenu', function (e) {
           return false;
       });
   });
  </script>

Comments

Popular posts from this blog

Search data in Gridview on Textbox Key press event using JQuery in Asp.Net- C#

Dumps for Microsoft Dynamics CRM MB2-703 Practice Exam Questions Free

StateCode and StatusCode Values for mostly used entities in Microsoft Dynamics CRM 2013

How to show enlarge image when mouse hover on image or link in Asp.Net(c#) using JavaScript

Show GridView row details in tooltip on mouseover with jQuery using asp.net inside GridView in c#

go to top image