为何鼠标移到标签上不变色
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 鼠标经过事件 </title>
<script type="text/javascript">
function message(){
confirm("请输入密码后,再单击确定!");
}
function click(){
var mychar =document.getElementsByName("title")[0];
mychar.style.color="red";
}
</script>
</head>
<body>
<form>
<label name="title" style="color:balck">密码:</label><input name="password" type="password" onmounseover="click" >
<input name="确定" type="button" value="确定" onmouseover="message()"/>
</form>
</body>
</html>