Disable Right Click on Web Page using jQuery

Self-Innovator
Posted by Self-Innovator under jQuery category on | Points: 40 | Views : 1296
The Below code demonstrates to disable a right click on a Web Page using jQuery.

Jquery script
<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() {
$(this).bind("contextmenu", function() {
return false
});
});
</script>


Page Design
<form id="form1" runat="server">
<div>
Just try right clicking on a page
</div>
</form>

Comments or Responses

Login to post response