<script>
var password = 测试字符串;
var answer = prompt(what's the password? ,默认值);
if (answer == password)
{alert(输入的字符串跟'测试字符串'相同);
}
else
{
alert(输入的js弹出框跟'测试字符串'不同);
</script>
2025公考·省考培训课程试听预约报名