<script>
var password = "测试字符串";
var answer = prompt("what's the password? ","默认值");
if (answer == password)
{alert("输入的字符串跟'测试字符串'相同");
}
else
{
alert("输入的js弹出框跟'测试字符串'不同");
</script>
中国足彩网信息请查看IT技术专栏