Difference between revisions of "Idna"

From OpenWetWare
Jump to: navigation, search
Line 9: Line 9:
 
if (pass1.toLowerCase() == "dna") {
 
if (pass1.toLowerCase() == "dna") {
 
alert('You Got it Right!');
 
alert('You Got it Right!');
window.open('protectpage.html');
+
window.open('http://openwetware.org/wiki/Tao:Bio');
 
break;
 
break;
 
}  
 
}  

Revision as of 00:38, 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() == "dna") { alert('You Got it Right!'); window.open('http://openwetware.org/wiki/Tao:Bio'); 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> <CENTER> <FORM> <input type="button" value="Enter Protected Area" onClick="passWord()"> </FORM> </CENTER> </html>