Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/08/2005, 04:11
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 9 meses
Puntos: 39
Información

Supongo que esto es lo que necesitas:
Código HTML:
<html>
<head><title>Selected Text</title>
<script type="text/javascript">
function seltext()
{
	if (document.selection.type == 'Text')
		alert('Esta seleccionado');
}
</script>
</head>
<body>

<form>
	<input id="campo" type="text" size="20" value="Tu texto">
	<input type="button" value="Seleccionado?" onclick="seltext();">
</form>

</body>
</html> 
Solo hay un problema: funciona solo desde Internet Explorer 4.0x