Block mouse right click using jquery in php

If you want to block right click on your website. You just need to copy the below code and paste it in your php file and make sure that jquey.js file must be include at your page to work this.

x----------------------x---------------------------------x


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

x---------------------x-----------------------------------x


If you like this post please don't forgot to post a comment to notify me.

Happy Coding Guys :)

Post a Comment

Previous Post Next Post