Poll

Rate This WebSite.
5 Stars
4 Stars
3 Stars
2 Stars
1 Star
No Stars
Create your own poll

Page Views

Website Chat

Labels

Popular Posts

Followers

Sponsored Links

Sponsored Links

Blog Archive

Saturday, 19 May 2012

How to Disable Right click in Blogger / Wordpress

L
Have you noticed, that some web sites do not allow their visitors using right mouse click while pointer is on the blog area. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts.
right click disable copy How to Disable Right click in Blogger / Blogspot ?
Right click on any internet browser is very important element and we must use it when it comes to copy or editing texts and etc. It’s very important when it comes to webmasters too. but some people may use it in a bad way, and you may want to make click right disabled on your blog. to protect you text, images links and etc.

For Blogger/Blog-spot

  1. Go to Blogger -> Template -> Add Gadget -> HTML/JavaScript
  2. Paste one of the code below.(no title to be mentioned)









For WordPress:

  1. Login to WordPress Dashboard.
  2. Go to Appearance -> Widgets -> Add new Text Widget.
  3. Paste one of the following code and save the Widget as shown below.
Disable right click without message ---->
<script language=JavaScript>
<!--
//Disable right mouse click Script - No alert
// http://beyondmobiles.blogspot.com
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>

Disable right click with message ---->
<script language=JavaScript>
//Disable right mouse click Script
// http://beyondmobiles.blogspot.com
var message="Right Click 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>

1 comments:

Dynamics said...

Thanks for information.I tested.. this may not work for all browsers.. for this we have to go JQuery.. this may help you.. http://aspnettutorialonline.blogspot.com/2012/05/disable-right-click-on-browser-using.html