Código HTML:
Ver original<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="javascript"> function verificar(obj){
var radioLength = obj.length;
if(radioLength == undefined){
if(obj.checked){
aux=obj.value;
}else{
aux="";
}
}else{
for(var i = 0; i < radioLength; i++) {
if(obj[i].checked) {
aux=obj[i].value;
}
}
}
switch (aux){
case "1":
document.location="http://www.midominio.com";
break;
case "2":
document.location="http://www.midominio.com";
break;
case "3":
document.location="http://www.midominio.com";
break;
}
alert(aux);
}
<form name="formulario" id="formulario" > <input name="precio" type="radio" value="1">De 1.00€ a 15.00€
<br /> <input name="precio" type="radio" value="2">De 15.00€ a 25.00€
<br /> <input name="precio" type="radio" value="3">De 25.00€ y más
<br /> <input name="enviar" type="submit" onClick="verificar(this.form.elements['precio'])" />
Si?
Quim