I may be wrong on some of the details, but I think a PC uses 13 followed by
10 (CR/LF), and the Mac and Unix uses 10 (LF). Test for 10 and see if it
works.
-----Original Message-----
From: Daryl Isaacs [mailto:idaryl@d...]
Sent: 03 January 2003 04:07
To: JavaScript HowTo
Subject: [javascript_howto] Keyboard - Enter and Return - Form
Hello, I have a form i would like the user to be able to use the "enter"
key on a PC or on a Mac the "return" or "enter" to ba able to submit or
whatever (possibly a function()?)
I think on a PC it is 13, but on a Mac it does not work on the "return"
Anyone know the code, or how I can achieve this?