JS对话框


alert("你好");

if(confirm(你现在快乐吗?)){
	alert("真为你高兴");
}
else
{
	alert("没关系,都会好起来的,对自己好一些");
}

var m=window.prompt("你今年几岁了啊");
alert("你今年"+m+"岁了");

Leave a Reply

Your email address will not be published. Required fields are marked *

*