pasword protected page in javascript
<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('https://youtu.be/dQw4w9WgXcQ');
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>
Also in JavaScript:
- jest assert if empty array
- useDispatch()
- javascript button onclick
- check if js property exists in class
- pyramid js
- how to append object in array javascript
- object set js
- javascript declare empty array
- jquery read dropdown in table cell
- react dark mode npm
- Generate random whole numbers javascript
- javascript link to google maps route
- setinterval react
- change id in jquery
- jquery call function every second
- how to deep copy an object in javascript
- foreach in javascript
- javascript close calendar after select
- generate random number nodejs
- how to make and add to an array in javascript
- upgrading node on mac
- cre&atRefs react js
- weakset in es6
- get request jquery