我多加了一个判断为什么没有成功?这个代码哪部分出现问题了?请教大家
<!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>
<script type = "text/javascript">
function w(){
alert("关注JS高级篇")
}
function rec(){
if(alert("guanzhuwo")=true){
c=getElementById("cc")
c.style.color="red"
//document.write("sss")
}
}
</script>
</head>
<body>
<h1>JS increase</h1>
<button id ="aa" onclick=w()>JS进阶篇</button>
<input name="bb" type="button" onClick="rec()" value="点击我,弹出对话框" />
<br /> <br />
<div id="cc">what the goodness!</div>
</body>
</html>