js three pop-up box
var name='';
name=prompt('请输入你的姓名:');
if(name=='王麻子'){
confirm('您的积分为:400,感谢查询');
}else{
alert('你不是本人,请勿动歪心思');
}
1.alert()——Alert box is a
simple reminder, just click OK
2.confirm()——Confirmation box
contains'confirm' and'cancel ' buttons, the
return value is true/false
mode dialog box, you must select a button and then close
3.prompt()——prompt message box The
user enters an answer to respond to the prompt