Home Advanced Code No Right Click

No Right Click

E-mail Print PDF
Help protect your images from people who want to steal them. Use this no right click script. It won't stop them from using other methods of stealing, but it will help ward off some of them.

Copy and paste the following code right after your <head> tag and before your </head> tag. Edit only the popup message alert section to fit your needs.

Code:
 <script language="JavaScript"> <!--

// You may edit the pop up message below.
// The n's represent an enter.
var message="That function is disabled.\n\n©your name"; // Message for alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>

 

Domain Names

Sample image .com .info
.mobi .net
.org .tv .us
.biz .ws .name
.am .at .be .cc .cn .de .eu
.fm .jobs .jp .ms .nu .nz
.tc .tw .uk .vg .ASIA .ME

Website Hosting

Sample image We're the affordable, reliable place to host your site. And unlike the competition, there's no set up fee and no annual commitment.

24/7 Support

Sample image Our highly trained, courteous support staff is waiting to help. We'll resolve any issue to your complete satisfaction.