How To Disable Highlight Text on blogger blog

Posted by Lasantha Bandara on May 19th, 2009 File Under : html, java script11 Comments

1.Log in to your dashboard--> layout- ->Page Elements 

2.Click on 'Add a Gadget' on the sidebar. 

3.Select 'HTML/Javascript' and add the code given below and click save.

<script type="text/javascript">

* Disable select-text script- © Dynamic Drive (
* This notice MUST stay intact for legal use
* Visit for full source code

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


function disableselect(e){
if (omitformtags.indexOf(
return false

function reEnable(){
return true

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")


Now you are done.

File Under : html, java script

Related Posts

11 Responses to “How To Disable Highlight Text on blogger blog”

  1. Del Glamiva says:

    OMG it works! Thank you so much for this code!

  2. Casper says:

    wonderful ,,, it works

  3. madhav says:

    Thank you so much it works

  4. Arun Kumar Chaurasia says:

    Thanks dude

  5. Unit IT says:

    Thank q very works.

  6. Zigsta says:

    Thank you for the script! It is working well on my site!

  7. Raghunath says:

    Bravo!! Thanks for the code.

  8. ABDULAZIZI says:


  9. huxein says:

    Thanks very much for your code
    i realy apreciate it

  10. Rana says:

    Great! It works fine. Thanks a lot for this code.

  11. luvfeelin says:

    it's works!

Leave a Reply