Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/02/2007, 04:34
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Re: Sentencia IF para que enlace a otra pagina

Hola de nuevo.

Esto te servirá:

Código:
<input type="button" onclick = "location= (txt.value=='pepe') ? 'tupagina.html' : 'pagina2.html'" />
Saludos,