¿Que le faltara a este SCRIPT?
Publicado por Jorge Alberto (39 intervenciones) el 26/02/2005 22:48:20
Al correr este codigo en la parte inferior del navegador me dice LISTO PERO CORRORES...
<html>
<head>
<SCRIPT>
function verificar()
{
if (document.opciones.sistema.value == "captura1")
{
alert("hola1");
}
elseif (document.opciones.sistema.value == "captura2")
{
alert("hola2");
}
}
</SCRIPT>
</head>
<body>
<FORM NAME="opciones">
<INPUT TYPE="radio" NAME="sistema" VALUE="captura1">Sistema de Recaudaciones
<br>
<INPUT TYPE="radio" NAME="sistema" VALUE="captura2">Sistema de Registro
<br>
<INPUT TYPE="button" VALUE="Entrar" onclick="verificar();">
</FORM>
</body>
</html>
<html>
<head>
<SCRIPT>
function verificar()
{
if (document.opciones.sistema.value == "captura1")
{
alert("hola1");
}
elseif (document.opciones.sistema.value == "captura2")
{
alert("hola2");
}
}
</SCRIPT>
</head>
<body>
<FORM NAME="opciones">
<INPUT TYPE="radio" NAME="sistema" VALUE="captura1">Sistema de Recaudaciones
<br>
<INPUT TYPE="radio" NAME="sistema" VALUE="captura2">Sistema de Registro
<br>
<INPUT TYPE="button" VALUE="Entrar" onclick="verificar();">
</FORM>
</body>
</html>
Valora esta pregunta


0