Idna

From OpenWetWare

(Difference between revisions)
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 03:36, 5 February 2012

Personal tools