Tuesday, August 14, 2012


If you want to disable the right click option from your website just add the following JavaScript snippet in the body tag of your page:



<script type="text/javascript">    
    document.oncontextmenu=new Function("alert('You do not have permission to copy.');return false")     
</script>

1 comments:

Aariz Williams said...

That's really helpful. Thank you for the code snippet.

Post a Comment