是代码文问题还是别的问题,一直无法跳出弹窗
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm</title>
<script type="text/javascript">
function AAA(){
var ZZ = comfirm("are you a boy or a girl");
if(ZZ==true)
{
document.write("你是女士!");
}
else
{
document.write("你是男士!");
}
}
</script>
</head>
<body>
<input name="button" type="button" onClick="AAA()" value="点击我,弹出确认对话框" />
</body>
</html>