Disable right click | Make right click disabled website or blog


Let's see how to disable the right click or Make right click disabled website or blog. Although for many this function is not very useful, there are people who ask us to teach them to do it, and it is fundamentally because disabling the right click prevent some visitors from copying the content of our blog.
disable right click | make right click disabled website, disable right click on website or blog, right click disabled website or blog, right click menu, right click disabled, disable right click, right to click,

This post is going to be very short because the way to prevent the use of the right mouse button on a certain page is solved by just including the following JavaScript code in it. You can do the test in this same entrance.
To carry out this trick simply access the HTML Edition of our blog and look for this tag:
<Body>
And just after, paste this code
<script language="JavaScript">
<!--

//Disable right click script by http://www.pakgoogle.com/

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
We save the changes and it is ready
If you want to disable text selection on your website or blog, visit this article.

I do not like using this trick, because it personally annoys me when I find it on some page. I am one of those who uses a lot of that button to open links in a new window and that cancel me that function, it really annoys me. However, there are some cases where it may be necessary.

Tags: disable right click | make right click disabled website or blog, disable right click on website or blog, right click menu, right click disabled, disable right click, right to click, right click disabled website,

Post a Comment

0 Comments