Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to make password in html correct or incorrect

fnnj
Comment

how to make password in html correct or incorrect

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>owen bucks</title>
</head>
<body>

</body>
<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>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: how to put < in html 
Html :: Assignment 1 
Html :: detect changes in html binded property angular 8 
Html :: pros/cons of using `.createElement()` and `append()` vs. `.innerHTML`? 
Html :: only one of my checkboxes will check if i click on its label 
Html :: awesome cheatsheets 
Html :: repolace html jaquery 
Html :: httponly 
Html :: aria for icon links 
Html :: chrome devtools filter exclude 
Html :: emmet html template 
Html :: 6 May 2492. 
Html :: old input file 
Html :: 50 time-saving keyboard shortcuts in Excel for Windows 
Html :: html input max words 
Html :: typo3 params lost pagination 
Html :: how to add hindi in html 
Html :: html tags rare 
Html :: pulsating icons 
Html :: html <br , paragraph break or text break 
Html :: el cerdo 
Html :: html MCSTUPID 
Html :: react native html view 
Html :: c++ compile syntax error 
Html :: sticky footer css grids 
Html :: word count alpine js 
Html :: how to display gif when button clicked html css 
Html :: empecher saut de ligne html 
Html :: format html vscode 
Html :: how to add a rollover image in html 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =