Idna

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
<html>
<html>
-
<SCRIPT>
+
<script language="javascript">
-
function passWord() {
+
<!--//
-
var testV = 1;
+
/*This Script allows people to enter by using a form that asks for a
-
var pass1 = prompt('Please Enter Your Password',' ');
+
UserID and Password*/
-
while (testV < 3) {
+
function pasuser(form) {
-
if (!pass1)
+
if (form.id.value=="dna") {
-
history.go(-1);
+
if (form.pass.value=="123") {            
-
if (pass1.toLowerCase() == "dna") {
+
location="http://openwetware.org/wiki/Tao:Bio"
-
alert('You Got it Right!');
+
} else {
-
window.open('http://openwetware.org/wiki/Tao:Bio');
+
alert("Invalid Password")
-
break;
+
-
}  
+
-
testV+=1;
+
-
var pass1 =
+
-
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
+
}
}
-
if (pass1.toLowerCase()!="password" & testV ==3)
+
} else {  alert("Invalid UserID")
-
history.go(-1);
+
}
-
return " ";
+
}
-
}
+
//-->
-
</SCRIPT>
+
</script>
-
<CENTER>
+
 
-
<FORM>
+
<center>
-
<input type="button" value="Enter Protected Area" onClick="passWord()">
+
<table bgcolor="white" cellpadding="12" border="1">
-
</FORM>
+
<tr><td colspan="2"><center><h1><i><b>Login
-
</CENTER>
+
Area</b></i></h1></center></td></tr>
 +
<tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input
 +
name="id" type="text"></td></tr>
 +
<tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass"
 +
type="password"></td></tr>
 +
<tr><td><center><input type="button" value="Login"
 +
onClick="pasuser(this.form)"></center></td><td><center><br><input
 +
type="Reset"></form></td></tr></table></center>  
</html>
</html>

Revision as of 04:43, 5 February 2012

Login Area

UserID:

Password:


Personal tools