1News Online:
Home » » Tutorial Blog - Disable Right Click

Tutorial Blog - Disable Right Click

Monday, October 15, 2012 | 2:00 AM

Do you not like someone else to take whatever content in your blog.?
And at the same time you do not like the stringy ² code that need to edit the 'edit html'. Now there is an easy way to realisasikan desires. :)

Why Should Disable Right Click.?
Normally, a blog owner would use this function to avoidance of other people take what is in their blog. Whether their sentences copied unhappy rounded ² (copy and paste), or to avoid the bandwidth used up. Familiarity reason I always read is that there are people who copy their entries rounded ².

Here is an example msg will come out when you turn disable right click

Disable Right Click dalam blog

Here is a simple way to use this function.

1. Copy this code.

<script language=JavaScript>

//edit by unwanted

var message="Masukkan Mesej Anda Disini";

function clickIE4(){
if (event.button==2){
return false;

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;

if (document.layers){
else if (document.all&&!document.getElementById){

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

// -->

2. Paste it on "HTML / JavaScript" in your blog.
Dashboard> Layout> Add a Page element> html / javascript. 

When ready, save and see the effects on your blog. :)

Kongsi artikel ini : :

Post a Comment

Copyright © 2012. 1News Online - All Rights Reserved
Proudly powered by Blogger