Top Ad unit 728 × 90

How To Disable Right Click In Blogger and Wordpress

If any one copying your work or copying any other content want to protect your content . For protecting your site from copy cats one of the way is to disable the mouse selection . Farway i hope it will be usefull to protect , you can make it make protection by adding java script in your 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=disableselectdocument.onmouseup=reEnable }</script>

For wordpress:

1. Go to wordpress Dashboard
2. Now click on the Appearance > Widgets > Add New Text Widget
3. Paste the javascript code which is above.
4. Now save the widget . Here the work is done.

For Blogger: 

1. Go to Blogger Dashboard.
2. Click on the Template Tab.
3. Now Add Widget > HTML / Javascript
4. Now save the widget . Now your work is done.

By following simple tutorial we can disable the mouse selections and it works on all mojor browsers which supports javascript.


                                 Please Support Our Facebook Page : Techrevert                        

How To Disable Right Click In Blogger and Wordpress Reviewed by sunny on 07:00 Rating: 5

No comments:

All Rights Reserved by Tech Revert © 2014 - 2015
Powered By WordPress24x7

Contact Form

Name

Email *

Message *

Powered by Blogger.