Posted on December 29, 2009
Its not rocket science to protect your blog content, protect your Blog Posts From Being Copied is very easy with just adding simple JavaScript Code to your blog, this will not prevent user from right clicking the mouse button, but this will restrict user from selecting text from your page. Hence user cannot copy text without selecting text !!.
Steps to add this JavaScript code in your website or blog is:
Navigate to the Layout > Page Element > Add a Gadget > click on HTML/Javascript and paste the JavaScript code given below.
01 |
<script type="text/javascript"> |
02 |
var omitformtags=["input", "textarea", "select"] |
03 |
omitformtags=omitformtags.join("|") |
04 |
function disableselect(e){ |
05 |
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) |
11 |
if (typeof document.onselectstart!="undefined") |
12 |
document.onselectstart=new Function ("return false") |
14 |
document.onmousedown=disableselect |
15 |
document.onmouseup=reEnable |
Thats it!, Now test it on your blog, cheers 
Similar Posts:
© 2009, PromotePoint - Google SEO Tips, Internet Marketing Tips. All rights reserved.