How To Disable Mouse Selection On Blogger And WordPress
I hate when someone copy my work, Copying others content and ideas. What can be worst than that ??
For Protecting our blog from copyright the easiest way is to disable mouse selection on your blog by which no one can copy text and images, we can make it possible by using small JavaScript code which will disable mouse selection on blog.
JavaScript Code For Disabling Mouse Selection
<script type="text/javascript"> var omitformtags=["input", "textarea", "select"] omitformtags=omitformtags.join("|") function disableselect(e){ if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) return false } function reEnable(){ return true } if (typeof document.onselectstart!="undefined") document.onselectstart=new Function ("return false") else { document.onmousedown=disableselect document.onmouseup=reEnable } </script>
For Blogger
- Go to blogger dashboard
- Click on Template tab.
- Now Add Gadget >> HTML/JavaScript
- Paste JavaScript code there which I provided above.
- After pasting code click on Save button and say bye to content thief.
For WordPress
- Go to Wordpress dashboard
- Now click on Appearance >> Widgets >> Add New Text Widget
- Paste JavaScript code there which I provided above.
- After pasting code click on Save button and say bye to content thief.
With this trick we can disable mouse selection in both blogger and WordPress, This trick is working on all major browser which support JavaScript.
0 comments:
Post a Comment