In article <bn*************@ID-174912.news.uni-berlin.de>,
la****@hotmail.com enlightened us with...
Is there a way to disable the submit functionality built into a text
box, or to redirect it into calling a javascript function without
submitting?
If you mean you'd prefer the browser not do the default action of
submitting a form when the enter key is pressed, you can capture the
enter key and do something else. The code has been posted here several
times. Check the archives (google has nice archives at
http://groups.google.com).
It's not recommended, though. It basically breaks what the user is used
to - which can have implications with disabled people with special
browsers, too. It also irritates the hell out of people who are used to
their browsers doing something, then it doesn't. If this is for an
intranet application, CD-ROM, or game, disregard that. :)
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------