By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,643 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

How can I recognize that the key i pressed in my keyboard is an ENTER key?

Exequiel
100+
P: 287
Hello friends, i want to know how to detect the enter key in my keyboard, if i pressed the enter key it must alert("You pressed enter key");
any reply are gratefully appreciated. . :) thanks. . :)
Aug 14 '13 #1

✓ answered by Dormilich

check out the keyCode property.

Share this Question
Share on Google+
3 Replies


Dormilich
Expert Mod 5K+
P: 8,639
check out the keyCode property.
Aug 14 '13 #2

Exequiel
100+
P: 287
@Dormilich. Wow!, thank you so much for that link. :)
Aug 14 '13 #3

Dormilich
Expert Mod 5K+
P: 8,639
no problem.
Aug 14 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.