html问题
<html>
<head>
<script type="text/javascript">
function hello(id){
if(1==id) {
alert("请输入你的姓名!");
return false;
} else {
alert("你好!");
}
}
</script>
</head>
<body>
姓名:<input type="text" id="name" />
<input type="button" onclick="hello(a)" value="确定" />
</body>
</html>
如上代码,为什么点击确定么有反映,把 "hello(a)" 中的字母改为数字就可以有反映是什么原因,求个大神帮帮忙啊