Thursday, April 7, 2016

Disable Text Selection



Login to Your Blogger Account and go to the Template section in your blog dashboard, and click the Edit HTML button to edit the template. Now, look for </head> tag, and paste the following code just above it, and save the template


<script language="JavaScript1.2">
function disableselect(e){
return false
}function reEnable(){
return true
}//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}</script>
For a specific area (eg. post section only),
At the end of your post, you change to html then add upper code




No comments:

Post a Comment