Ver Mensaje Individual
  #9 (permalink)  
Antiguo 02/12/2009, 12:30
Avatar de Caludia87
Caludia87
 
Fecha de Ingreso: octubre-2007
Mensajes: 83
Antigüedad: 17 años, 4 meses
Puntos: 0
Respuesta: ayuda con código

Lo hice de esa forma, pero ahora simplemente no funciona el código, trabaja normalmente... como si no tuviera el código xD

Código HTML:
<script type="text/javascript">
function DoTheCheck(t) {
if(document.myform.si.checked == true)
{ alert('ACEPTO');
return true;
}
if(document.myform.si.checked == false&&document.myform.no.checked==false)
{ alert('SELECCIONE UN CHEKBOX);
return false; }
if(document.myform.no.checked == true)
{ alert('NO ACEPTO');
return true;
location.href="http://www.miweb.com/";
}
}
</script>
<form name="myform" action="pagsiguiente.php" method="post" onsubmit="return DoTheCheck(this)">
Porfavor lea las <a href="javascript:paginas_new('CondicionesServicio.php')" class="Estilo8"> Condiciones de Servicio </a> de Mensajeria <br />
<br />
Esta Usted de Acuerdo con las Condiciones de Servicio?
<br />
<input type="checkbox" id="accp_reglas" name="si" /> Si
<br />
<input type="checkbox" id="accp_reglas" name="no" /> No
<br />
</form> 
hice algo mal?