Search
 
SCRIPT & CODE EXAMPLE
 

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>
Comment

PREVIOUS NEXT
Code Example
Html :: image urol in src local image 
Html :: list of meta tags 
Html :: input type text inside select option 
Html :: html to pdf angular 
Html :: bootsrap main section fill all height with navbar 
Html :: placeholder text html 
Html :: javascript inside html 
Html :: password input type in html 
Html :: div side by side css without bootstrap 
Html :: html img src background 
Html :: array in html form 
Html :: amp-img example 
Html :: link href 
Html :: html clickable image 
Html :: section tag in html 
Html :: html basic website 
Html :: html block button tag 
Html :: html layout 
Html :: how to make an a tag not clickable 
Html :: types of buttons in html 
Html :: tailwind rounded top left 
Html :: progress bar bootstrap 
Html :: onchange html 
Html :: bootstrap input field validation 
Html :: change css angular binding 
Html :: Change iframe src by clicking a link 
Html :: how to stop html audio 
Html :: vue emit 
Html :: how to call one phtml file in another phtml file in magento2 
Html :: onclick button how to import file upload using dialog in html 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =