Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/08/2008, 05:48
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 1 mes
Puntos: 126
Respuesta: getElement en onclick

Hola

Prueba así

Código PHP:
 function valor (n) {
var 
document.getElementById('expNumero').value;
var 
url "index.php?menu=edicion_pas";
url url+"&expNum="+v;

document.location.href url

Código:
 <input type="text" name="expNumero" id="expNumero">&nbsp;<input type="button" value="Consultar" onclick="valor(this)">
Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />