<!DOCTYPE html>
<html>
<head> <title>password</title>
</head>
<body> <script>
alert("Password please");
</script> <p style="font-size: 30pt;">ENTER PASSWORD BELOW
</p>
<p>Password:<input id="passwordbox" type="password"/></p>
<a href="myfirsthtml.html" onclick="return checkPassword();">
click here to submit password and view site
</a> <script>function checkpassword() {
var password = document.getElementById("passwordBox");
var passwordText = password.value;
if(password text == "lovelyluck") {
return true;
}
alert("Access denied! Incorrect password!");
return false
}
</script>
</body>
</html>
just edit the password lovelyluk
2 Responses
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.