Habilitar y deshabilitar la seleccion de texto
hola, ante todo felicidades por vuestro trabajo. Queria haceros una cunsulta . En la web he visto como deshabilitar la seleccion de texto de un documento web, pero .. hay algun momento qu eme interesa habilitarlo ... ¿que lineas serian para habilitar si el codigo para deshabilitar es el siguiente?
<script language=Javascript>
<!--
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script
function disabletext(e){
return false
}
function reEnable(){
return true
}
//if the browser is IE4+
document.onselectstart=new Function ("return false")
//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}
// -->
</script>
<script language=Javascript>
<!--
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script
function disabletext(e){
return false
}
function reEnable(){
return true
}
//if the browser is IE4+
document.onselectstart=new Function ("return false")
//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}
// -->
</script>