javascript thread: Form submit...
This is a multi-part message in MIME format.
------=_NextPart_000_000E_01C211B1.E95A0670
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Try to use onkeydown event in your textbox and check for Enter
e.g. (I think Enter's code is 13)
function textbox_onkeydown()
{
if (window.event.keyCode == 13)
{
yourForm.submit();
}
}
Stas
-----Original Message-----
From: SD-Studios [mailto:info@s...]
Sent: Wednesday, June 12, 2002 1:25 AM
To: javascript
Subject: [javascript] Form submit...
Hi!
I have a problem. I use a script to get text to work as a submit. The
only problem with this is that if you press enter, form wont submit,
like it would have done with a submit-button... How can I fix this?
Thanks!
--
MVH, Martin Johansson
CEO & Project Supervisor
SD-Studios, Squaremedia HB
+46 (0)70-3003320
http://www.sd-studios.com <http://www.sd-studios.com/>
http://www.swehost.com
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 ---