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