Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/06/2008, 08:29
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
Respuesta: Problemas al incluir formulario javascript en una celda de tabla HTML

Hola gabiango

Este código me ha funcionado bien:

Código:
<html>
<head>
<title>prueba</title>
</head>
<script type="text/javascript">
<!--
function Mostrar(boton)
{
if (document.formulario.potencia[0].checked) window.location.href="http://www.elpais.com";
}
//-->
</script>

<body>
<table><tr><td>
<form action="procesa.phtml" name="formulario" id="formulario" method="GET">Potencia:<br>
<input type="radio" name="potencia" value="400"> 400 W
<input type="radio" name="potencia" value="600" checked> 600 W
<input type="radio" name="potencia" value="800"> 800 W<br>
</form>
</td></tr></table>
<a href="#" onclick="Mostrar();return false">Ver valores</1>
</body>
</html>
Saludos,