help:onKeyPress事件为什么不执行
事件函数已经加载了,onKeyPress事件为什么不执行
<html>
<body>
<form method="post" name="bb">
<input type="text" name="aa" >
</form>
</body>
<script language="JavaScript">
function myfunction(){
alert("aaaa");
}
document.bb.aa.onKeyPress=myfunction;
</script>
<script language="JavaScript">
alert(document.bb.aa.onKeyPress.toString());
</script>
</html>