为什么点了按钮没反应 到底那里出错了啊?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我们互动下</title>
<style>
#haha{color:red;}
</style>
<script type="text/javascript">
function abc(){
var ha=confirm("关注JS高级篇");
if(ha==true){
document.write("加油,继续努力!");}
else{
document.write("黑发不知勤学早,白首方悔读书迟!");}
}
</script>
</head>
<body>
<h1 id="haha">JS进阶篇</h1>
<form>
<input type="button" onClick="abc()" value="点我点我"/>
</form>
</body>
</html>