[thelist] Cancelling onKeyDown in Netscape 6

Andrew Clover thelist at lists.evolt.org
Tue Jan 29 13:37:00 2002


Matt Feldman <mfeldman@wwwood.net> wrote:

> I'm trying to stop the typing of text to enforce a maxlength on a
> textarea by returning false to an onKeyDown.  It works fine in IE and
> NN4 but Netscape 6 seems to ignore it.

Have you tried doing the same to onkeypress?

If that doesn't work, you'd have to simply trim the field to length after
each character has been inserted.

--
Andrew Clover
mailto:and@doxdesk.com
http://and.doxdesk.com/