in reply to can anyone explain this codeinput type=

For a start, this question is non Perl-related. : )

It is possible to use Javascript to disable the Enter key completely by using event capturing. Check out webreference for their columns on Javascript. I'm not sure which version of javascript is supported on KDE2.1, but you will need version 1.2 or above to support event handling

  • Comment on Re: can anyone explain this codeinput type=

Replies are listed 'Best First'.
Re: can anyone explain this codeinput type=
by cLive ;-) (Prior) on Apr 18, 2001 at 07:34 UTC
    Errr, small point, but the onSubmit handler is part of client side JS version 1.0

    So yes, you can disable submission using an onSubmit handler in your FORM tag, but you can't rely on it always working (but for 90% of users it will do the trick).

    cLive ;-)

      I'm not talking about disabling submission using onSubmit. I'm refering to capturing the "ENTER" key press event on the browser window and preventing the event to be routed to the form object.