<!Doctype html> <html> <head> <title> page</title> <script type=\"text/javascrip
ID: 3557625 • Letter: #
Question
<!Doctype html>
<html>
<head>
<title> page</title>
<script type="text/javascript">
function checkPass(){
var password=document.getElementById('password').value;
if(password=="yes")
{
alert('Welcome');
window.location("frontpge.html");
window.close();
}
else
{
alert('wrong password');
}
}
</script>
<style type="text/css">
body{
position:relative;
top:200px;
text-align:center;
color:white
Form{weight:bold;}
}
</style>
</head>
<body background="5.jpg">
<Form name="pwordcheck" action="">
Password:<input type="password" id="password" name="password" size="20">
<input type="button" value="submit";>
</Form>
</body>
</html>
Explanation / Answer
<!Doctype html>
<html>
<head>
<title> page</title>
<script type="text/javascript">
function checkPass(){
var password=document.getElementById('password').value;
if(password=="yes")
{
alert('Welcome');
window.close();
}
else
{
alert('wrong password');
}
}
</script>
<style type="text/css">
body{
position:relative;
top:200px;
text-align:center;
color:white
Form{weight:bold;}
}
</style>
</head>
<body background="5.jpg">
<Form name="pwordcheck" action="">
Password:<input type="password" id="password" name="password" size="20">
<input type="button" value="submit";>
</Form>
</body>
</html>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.