Answers for "how to create a password for a website html"

5

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>
Posted by: Guest on November-21-2020

Code answers related to "how to create a password for a website html"

Browse Popular Code Answers by Language