Tuesday 2 August 2011

How to block mouse right click using javascript?

Guys,

Do the following to block right click:

<script>
$(document).ready(function()
    {
          $(document).bind("contextmenu",function(e){
                  return false;
          });
    });
</script>

Cheers!

No comments:

Post a Comment