Home » Blogger Tutorials, Tricks and Hacks » Blogger Tricks » How To Disable Text Selection In Blogger

Welcome to our AllBlogTools.com v.3 new version, We are still in beta, please contact us to report an error.

|| View All Tutorials ||

How To Disable Text Selection In Blogger

How To Disable Text Selection In Blogger

1 Star2 Stars3 Stars4 Stars5 Stars

Report Error


In one of our previous posts, we featured a tutorial that shows you how you can disable the mouse’s right-click function as a way to deter (though not completely prevent) content copiers from copying your articles or materials. Here’s another extra measure you can take to make it even harder for them to plagiarize your stuff: prevent them from selecting or highlighting your text.

Implementing this to your Blogger blog is simple:

  • In your dashboard, go to Layout and then click on Add a Gadget.
  • Select HTML/JavaScript
  • Copy and paste this code below:
 <script type="text/javascript">

* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code

//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]


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")



  • Then save the widget and you’re done.

Go ahead and try selecting any text on your page. You’ll see that you won’t be able to highlight anything, not even the images for that matter. Thanks to Sirajul Islam for the share.

Liked It ? Please Share


7 Responses | Post A Comment | Subscribe To Comments RSS Feed

  1. Naman Distro says:

    hey the script iz real good but there iz an problem it does not support Mozillo firefox………

  2. wilker says:

    Didnt work for me :/

  3. Thanks Siraj that was very informative

  4. I’d need to check with you here. Which isn’t some thing I usually do! I appreciate reading a post that may make persons feel. Also, thanks for allowing me to comment!

    red bottoms christian louboutin]

  5. Sunil says:

    awesome!it works really fine!

  6. fad92 says:

    disable text selection, disable right click, disable ctrl+c, disable ctrl+v, disable drag & drop, disable ctrl+u, everything~

    i can securely take a look your source code… hahahahahhahahah these tricks was totally out dated…

  7. Awalk says:

    it’s works… thanks very much for this script. keep blogging

Comments will be closed off on this post 365 days (1 year) after it is published. Apologies to this, but it's all about avoiding a growing comment spam problem. See our most recent posts where you can comment here