Wednesday, March 26, 2008

Disable Right Click

This manner to protect contents your blog from plagiarizing. by way of lethal function right clicks in mouse (disable right click in mouse), so that can not copy contents from your blog. To apply similar matter in your blog, please insert code under this between <head> and </head>:

<script language="JavaScript" type="text/javascript">

function right(e) {

if (navigator.appName == 'Netscape' &&

(e.which == 3 || e.which == 2))

return false;

else if (navigator.appName == 'Microsoft Internet Explorer' &&

(event.button == 2 || event.button == 3)) {

alert("Stop");

return false;

}

return true;

}

document.onmousedown=right;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);

window.onmousedown=right;

</script>


In part

alert("Stop


Change alert("Stop"); message, as according to message that want you display.

For Indonesia Language please visit This My World

Add to Technorati Favorites

0 comments: