请教那位师哥指点下,为什么没像例子那样出现"确定"和"取消" 框
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm</title>
<script type="text/javascript">
function rec(){
var mymessage=cofirm("你喜欢JavaScript吗?");
if(mymessage==true)
{ document.write("很好,加油!");}
else
{ document.write(" JS功能强大,要学习哦!");}
}
</script>
</head>
<body>
<input name="button" type="button" onClick="rec()" value="确定" />
</body>
</html>