Custom Search

Tuesday, February 3, 2009

How to Disable Right Click in your Blog

Sponsored Links

Some of the website owners or publishers are very protective with their articles or posts. What I mean is that they don't want visitors to be able to copy and paste their articles due to legal or copyright reasons. If you are on of them, this tutorial will help you. It disables the mouse right click function on your blog or site.

Step by step tutorial on how to Disable Right Click on your Blogger.

1. Login to your Blogger account.

2. Click on Layout

3. Click on the Add a Gadget link.

4. Select HTML/JavaScript widget.
5. Paste the code below in the Content box.

<script language="JavaScript"> <!-- 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>

6. Click on Save.

View your blog and try to press Right Click.

1 comments:

Unknown said...

it's not worked at my blog
why...??

Post a Comment

Please subscribe to my rssfeed 16x16 button Subscribe to my RSS Feed or email subscription 16x16 button Subscribe via Email if you want to receive updates. Thanks! ^_^