- Joined
- Dec 9, 2020
- Messages
- 3
- Reaction score
- 0
Cam you please help me fix this code
<!DOCTYPE html>
<html>
<head>
<title>Password</title>
<style>
body {
background-color: lightblue;
padding: 30px;
}
</style>
<script>
function checkPassword() {
var password = document.getElementById("passwordBox");
var passwordText = password.value;
if(passwordText == "obeseduck123") {
return true;
}
alert("Access Denied Incorrect Password");
return false;
}
</script>
</head>
<body>
<p style="font-size: 30pt;">Ciaran's To-Do List</p>
<p>Please enter the password to continue.</p>
<p>Password:<input id="passwordBox" type="password"/></p>
<a href="hahhiatuhsrouhgaoluhlohtourhzhzourhluthur.html" onclick="return
checkPassword();">
Click here to submit password
</a>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Password</title>
<style>
body {
background-color: lightblue;
padding: 30px;
}
</style>
<script>
function checkPassword() {
var password = document.getElementById("passwordBox");
var passwordText = password.value;
if(passwordText == "obeseduck123") {
return true;
}
alert("Access Denied Incorrect Password");
return false;
}
</script>
</head>
<body>
<p style="font-size: 30pt;">Ciaran's To-Do List</p>
<p>Please enter the password to continue.</p>
<p>Password:<input id="passwordBox" type="password"/></p>
<a href="hahhiatuhsrouhgaoluhlohtourhzhzourhluthur.html" onclick="return
checkPassword();">
Click here to submit password
</a>
</body>
</html>