Difference between revisions of "Idna"

From OpenWetWare
Jump to: navigation, search
Line 1: Line 1:
 
<html>
 
<html>
<head>
+
<SCRIPT>
<script type="text/javascript">
+
function passWord() {
 
+
var testV = 1;
 
+
var pass1 = prompt('Please Enter Your Password',' ');
var pass1='password';
+
while (testV < 3) {
var password=prompt("What's the magic word?","");
+
if (!pass1)  
if (password==pass1)
+
history.go(-1);
  {
+
if (pass1.toLowerCase() == "letmein") {
  document.write("Correct!");
+
alert('You Got it Right!');
  }else{
+
window.open('protectpage.html');
  document.write('Incorrect!')
+
break;
  }
+
}  
 
+
testV+=1;
</script>
+
var pass1 =
</head>
+
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
<body>
+
}
adfadfaldfknasdf
+
if (pass1.toLowerCase()!="password" & testV ==3)
</body>
+
history.go(-1);
 +
return " ";
 +
}
 +
</SCRIPT>
 +
<CENTER>
 +
<FORM>
 +
<input type="button" value="Enter Protected Area" onClick="passWord()">
 +
</FORM>
 +
</CENTER>
 
</html>
 
</html>

Revision as of 01:36, 5 February 2012

<html> <SCRIPT> function passWord() { var testV = 1; var pass1 = prompt('Please Enter Your Password',' '); while (testV < 3) { if (!pass1) history.go(-1); if (pass1.toLowerCase() == "letmein") { alert('You Got it Right!'); window.open('protectpage.html'); break; } testV+=1; var pass1 = prompt('Access Denied - Password Incorrect, Please Try Again.','Password'); } if (pass1.toLowerCase()!="password" & testV ==3) history.go(-1); return " "; } </SCRIPT>

<FORM> <input type="button" value="Enter Protected Area" onClick="passWord()"> </FORM>

</html>