msdn解释onkeydown Fires when the user presses a key.onkeypress Fires when the user presses an alphanumeric key.http://msdn.microsoft.com/workshop/author/dhtml/reference/events.asphttp://msdn.microsoft.com/workshop/author/dhtml/reference/events/onkeydown.asp http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onkeypress.asp
Fires when the user presses a key.onkeypress
Fires when the user presses an alphanumeric key.http://msdn.microsoft.com/workshop/author/dhtml/reference/events.asphttp://msdn.microsoft.com/workshop/author/dhtml/reference/events/onkeydown.asp
http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onkeypress.asp