10 November 2013

How To Disable Text Selection In Your Blogger Blog

Tutorial : How To Disable Text Selection In Blogger Blog

Step 1 : Go to Blogger Dashboard

Step 2 : Click on Layout

Step 3 : Click on Add a Gadget

Step 4 : Now a pop up window will open, scroll down and click on HTML/JavaScript

Step 5 : Now paste the below code in Content box and click on Save.

<script type="text/javascript">
function disableSelection(target){
 if (typeof target.onselectstart!="undefined") //IE route
  target.onselectstart=function(){return false}
 else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
 else //All other route (ie: Opera)
  target.onmousedown=function(){return false}
 target.style.cursor = "default"

Happy Blogging!