Skip to main content

How to Disable Right click in Blogger / Blogspot ?

How to Disable Right click in Blogger / Blogspot ?
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 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.
To setup this tool in your blog Copy the Following code and paste it to your blog by adding a new page element.
Step 1 : Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
Step 2 :Copy the below code and paste it in that blogger widget.
Step 3 : Save the html/javascript and view you blog.

<script language="JavaScript">
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.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>

Comments

Popular posts from this blog

Shortcut key to align code in eclipse

While learning java or working with java, we may need to copy a code from other source like internet or other files. When we do that the code may looks messy like before. which is not in standard and difficult to work on complex logics. Below key is useful to align the messy code:       Ctrl + Shift + F:   Formats a selected block of code or a whole source file.  Format messy code to Java-standard code.  If a code block is not selected, Eclipse applies formatting for the whole file. #shortcut key to align code in eclipse #shortcut_key_to_align_code_in_eclipse #shortcut_key_to_format_code_in_eclipse #shortCut key to format code in eclipse #shortcut_key_to_code_ alignment_in_eclipse #Auto- Alignment Shortcut Key  in  Eclips e

The First 10 People Who Sign up On Facebook

The First 10 People Who Sign up On Facebook 10. Zach Bercu sphotos-b.xx.fbcdn.net “The past eight years have been extraordinary,” Bercu said. A graduate of Emory’s medical school, Bercu spent a year in Israel, where he became fluent in Hebrew. He completed his residency in New York, part of the last intern class at St. Vincent’s, whose “hospital infrastructure crumbled around me,” he remembered of the facility, which closed in 2010. Now a resident at Mount Sinai in radiology, Bercu plans to complete a fellowship in interventional radiology, a form of “micro-surgery.” From his undergraduate years, “whether through Facebook or in person,” Bercu says he “took with me some of the greatest friendships one could have.” 9. Manuel Antonio Aguilar publicogt.com Aguilar calls himself a social entrepreneur “focused on the base o...

10 WhatsApp Tips and Tricks Everyone Should Know

For most of us, WhatsApp has become the default go-to messenger, because everyone's on it, and it's on nearly every platform. WhatsApp has over a billion downloads on Google Play alone, the only other messenger to boast that is Facebook Messenger. The app has made itself indispensable by adding a browser version and voice calling to its platform. For those who have to deal with the app on a daily basis, we've lined up some interesting tricks and tweaks that will improve your user-experience. 1. Mute group chats and notifications Group chat notifications can get noisy, they're best turned off when you have to focus on a task at hand. On Android On a group chat, tap the Menu button, and hit Mute. Then, choose the time-frame for which you would like the group to be muted. You can also disable notifications for the specified period. This feature is now available on the web browser too. On iPhone Open Group Chat, tap the group subject to reveal the Gr...