04 April 2008

How to Disable Right Click(Blogger)

by Amirul Ashraff 0 comments



I already post a tutorial on How to enable right click on a website that forbid it. So now I would like to show you how to disable right click in your blogger account(I rarely post on Blogger tutorials).

Ok here is it:

Copy this following codes into your blogger template( Go to your blogger edit HTML)
<script language=JavaScript>
<!--

var message="Function Disabled!";

///////////////////////////////////
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;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>

Copy the codes into below of your <BODY> section of you blogger template

Don't forget to subscribe to our feed!!

Share This Post
Stay updated and get latest news and tips or tutorials on technology by subscribing to our feed or you can always get it be delivered to your mail inbox.
Stumble
Delicious
Technorati
Twitter
Facebook
Comments 0 comments

Post a Comment

Feel Free to Leave Your COMMENT Here...But Please Do not Spam...WE DON'T LIKE SPAM

Amirul Ashraff
My name is Amirul Ashraff Mohd Niza and I’m a full time student in Tengku Mahmud High School and a ‘part time student’ in this blogging world (n_n). I'm Web addicted so I build a blog to share my rants on technology stuffs
Contact Me Via Mail

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Recent Entries

Top Post

Categories

Subscribe feeds rssRecent Comments

Technorati

Technorati
My authority on technorati
Add this blog to your faves