07/07/2005, 16:50
|
| | Fecha de Ingreso: junio-2005
Mensajes: 16
Antigüedad: 19 años, 7 meses Puntos: 0 | |
aún sigue sin funcionar Bueno queria saber si alguien me puede decir que problema hay con este código que no funciona:
-------Archivo htm ---------
<HTML>
<HEAD>
<TITLE>UBC</TITLE>
<script language="JavaScript" src="java.js">
</script>
</HEAD>
<BODY onLoad="function micon()">
</BODY>
<HTML>
-------Archivo Javascript --------
function micon() {
var testV = 1;
var pass1 = prompt('Escribe tu contraseña');
while (testV < 3) {
if (!pass1) history.go(-1)
if (pass1.toLowerCase() == "mipase") {
function hta();
break;
}
testV+=1;
var pass1 = prompt('¡Equivocada! Puedes volver a intentarlo.','Contraseña');
}
if (pass1.toLowerCase()!="otra" & testV ==3) location.href = "respuesta.htm";
return " ";
}
document.write(passWord());
function hta() {
document.open()
document.writeln("<html><head></head><frameset rows='*,*'>");
document.writeln("<frame name='marco1' src='http://yahoo.es'>");
document.writeln("<frame name='marco2' src='http://www.google.com.pe/'>");
document.writeln("</frameset></html>");
document.close()
}
Por favor alguien respóndame y dígame que puedo hacer |