请问我的代码78行哪里错了,无论确定还是取消结果都一样
<!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="安哥是帅哥吗?";
confirm(mymessage);
if(mymessage==true)
{
document.write("还是你明智!");
}
else
{
document.write("你肯定是个远视眼!");
}
}
</script>
</head>
<body>
<input name="button" type="button" onClick="rec()" value="点击我,弹出确认对话框" />
</body>
</html>