Disabling Right Click on a Web Page

Tags:
HTML Script Right Click Disabling Tricks Copywriting
bd22
  • By: bd22
  • Subscribers: 0
  • Updated: 28-Oct-08
  • Videos: 3
  • United States English
  • Comments: 0
  • Views: 263
  • Added: 28-Oct-08

By using simple Java script you can disable right click on a website protecting your photos and contents of the page. This is not 100% effective....but it should be able to stop most users from downloading your stuff. ask if you have questions

put the code under your <body> tag in your html
_______________________________________________

<script language=JavaScript>

var message=" PUT YOUR WARNING HERE.";

function clickIE4(){
if (event.button==2){
alert(message);
return false;}

function clickNS4(e){
if (document.layers document.getElementById&&!document.all){
if (e.which==2 e.which==3){
alert(message);
return false;

  1. Categories: How To, Science & Tech
Comments on

Disabling Right Click on a Web Page

0 Comments | Be the first to comment