Tuesday, May 28, 2013

Disable Text Select javascript

We can disable text selection in our website using this script .just put this script in head tag.
   

 <script type="text/JavaScript">

function disableselect(e){
return false
}
function reEnable(){
return true
}

document.onselectstart = new Function("return false")

if (window.sidebar){
document.onmousedown=disableselect
document.onclick = reEnable

document.onkeydown = disableselect
document.onkeyup = reEnable
}



</script>

If you are searching life partner. your searching end with kpmarriage.com. now kpmarriage.com offer free matrimonial website which offer free message, free chat, free view contact information. so register here : kpmarriage.com- Free matrimonial website

0 comments:

Post a Comment