how to make a password system in html code example
Example 1: how to make a password system in html
<script type="text/javascript">
var password = "please";
var x = prompt("Enter in the password "," ");
if (x.toLowerCase() == password) {
alert("Come right in \n \n You've entered in the right password");
window.location = "good.htm";
}
else {
window.location = "bad.htm";
}
</script>
Example 2: html password and username
#Check the above or below to know.