<html>
<head>
<meta charset='utf-8'>
<title>conditional statement</title>
<script>
var pwd=prompt('请输入您的密码','');
if(pwd=='123456'){
document.write('登录成功!')
}else{
document.write('登录失败!')
}
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<meta charset='utf-8'>
<title>conditional statement</title>
<script>
var pwd=prompt('请输入您的密码','');
if(pwd=='123456'){
document.write('登录成功!')
}else{
document.write('登录失败!')
}
</script>
</head>
<body>
</body>
</html>