How to Disable Right Click on your Blog or Webpage : Blooger Tips




Some times it become important to disable right click for many reasons such as protecting images or source code of any page. Luckily, JavaScript is here to help you out. You can disable right click by pasting few lines of JavaScript in your blog. This will disable right click on all your blog pages however you can also set it to disable right click on a certain page. This script is also widely used to protect images to be saved by blog readers. Follow this simple tip to do this;






 1.Log in to your dashboard--> layout- -> Edit HTML



 2.Click on "Expand Widget Templates"



 3.Scroll down to where you see this:  </head>



 4.Paste this code just Before the searched line.



<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'
type='text/javascript'/>

<script type='text/javascript'>

//<![CDATA[

$(document).ready(function(){

$(document).bind("contextmenu",function(e){

return false;

});

});

//]]>

</script>


5.Click on "Save Templates".



Now right key is disable in your blog.

Subscribe to Get Newest Articles By Email!

Follow us!

0 comments:

Post a Comment