Diable Right Click on Image

Posted by Self-Innovator under jQuery category on | Points: 40 | Views : 1330
The below code will demonstrate hoe to disable Right Click on a Image using jQuery
Javascript File
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
<script type="text/javascript" language="javascript">
$(function() {
$('img').bind("contextmenu", function() {
return false

Page Design
<img id="Image1" src="uploads/2013220131219359Dubai.jpeg" alt="Right Click on Image" />

Comments or Responses

Login to post response