Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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 
 
 You've entered in the right password");
 window.location = "good.htm";
}
else {
 window.location = "bad.htm";
}
</script>
Source by www.computerhope.com #
 
PREVIOUS NEXT
Tagged: #password #system #html
ADD COMMENT
Topic
Name
3+9 =