Disable Right click on Browser using JQuery

  Uncategorized

Disable Right click on Browser using JQuery

<html>
<head>
    <title></title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(document).bind("contextmenu", function (e) {
                alert('Right click is disabled');
                e.preventDefault(); //or  return false; //
            });
        });
    </script>
</head>
<body>
</body>
</html>

(Visited 10 times, 1 visits today)

LEAVE A COMMENT