How can I distinguish key press and mouse click events?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Martin
Posted On:   Thursday, January 15, 2004 08:55 AM


In the html:submit tag, I need distinguish user hit keyboard and the mouse click events. I tried the event.keyCode (e.g. event.keyCode == 13), but it doesn't work. Does anybody know how to do it?

Many thanks,

John

Re: How can I distinguish key press and mouse click events?

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, January 15, 2004 09:09 AM

Perhaps you could do something distinct in the onclick of the html:submit button, which would therefore NOT get called in a submit that comes from just a keyboard enter event.

About | Sitemap | Contact