Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/05/2013, 23:43
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: ¿Evitar copiado de texto con javascript?

Esto es de lo más compatible que vas a conseguir
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>titulo</title> 
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
/*<![CDATA[*/
*{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
-ms-user-select: none;
user-select: none;
}
/*]]>*/

</style>
</head>
<body onselectstart="return false;" oncontextmenu="return false;">
<p>Texto</p>
<input type="text" value="vvvv" />
</body>
</html>
Pero como ya habrás visto, son solo pequeñas trabas al usuario, no hay nada 100% efectivo. Con deshabilitar el js o css basta

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.