$(document).ready(function()
{
$(document).bind("contextmenu",function(e){
return false;
});
});
This code for disable right click on web pages. It is working all browsers excepted Opera..
try it..
Download add jQuery File . Here it is link http://jquery.com/
Disable Right Click Easily using jquery
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>jQuery disable right click</title>
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" language="javascript">
$(function() {
$(this).bind("contextmenu", function(e) {
e.preventDefault();
});
});
</script>
</head>
<body>
jQuery disable right Click
</body>
</html>
<head>
<title>jQuery disable right click</title>
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" language="javascript">
$(function() {
$(this).bind("contextmenu", function(e) {
e.preventDefault();
});
});
</script>
</head>
<body>
jQuery disable right Click
</body>
</html>