Home » Script » How to disable right click on blog
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
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
<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.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
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:
Blog stuff
- Install share this post into blogger
- Create link issue shadow effect
- How to create an textarea
- Make Breadcrumb Navigation on blogspot
- Creating Feedburner For Blogspot
- Making Related Articles Blogger From Hoctro
- Make related post with scroll function
- How to make 3 column footer on blogger
- New blogger read more using jump break
0 comments:
Post a Comment