Diable Right Click on Image

Self-Innovator
Posted by Self-Innovator under jQuery category on | Points: 40 | Views : 957
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>
<script type="text/javascript" language="javascript">
$(function() {
$('img').bind("contextmenu", function() {
return false
});
});
</script>

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

Comments or Responses

Login to post response