How to Disable Text Selection Function in your blogger or website
Fast Copy the html/ JavaScript code from the below box
<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>
After copy the html code sing in your blogger account
Go to blogger dashboard and click the layout button
Go to Add a Gadget and click the box
Now copy the html code and paste here
Now save the code
now this is ready to work
Don't forget to like us on facebook.











0 comments:
Post a Comment