How to disable right click on blog

On Tuesday, October 11, 2011 0 comments
Perhaps you often visit a blog that can not be in the right click, or in other words the blog owner disabled the right click of the mouse. It is usually done to avoid copy and paste articles or pictures that are on his blog. This time I'll share a script to disable right click on the mouse. Here the script

<script language=JavaScript>

//Matikan Klik Kanan

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.oncontextmenu=new Function("return false")
// -->

how to use:

1. select a design, edit html
2. now find the code <head>
3. after find, paste the script above and put it under <head>.
4. save

Now your blog can not right click by anyone,
may be useful

More Article:


Post a Comment