Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/02/2008, 20:58
helacer
 
Fecha de Ingreso: mayo-2006
Ubicación: Bogotá
Mensajes: 2.061
Antigüedad: 17 años, 11 meses
Puntos: 50
Re: obtener valor de un campo de texto

Pruebe con

Código HTML:
<input type="text" id="xx" /> 
<button type="button" onClick="tel()">envia</button>
<script>
function tel() {
	var num=document.forms.NOMBREFORMULARIO.xx.value;
	alert(num);
</script> 

Suerte