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.
Reader Questions - Batch 11
12 years ago
1 comments:
it's not worked at my blog
why...??
Post a Comment