Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: can anyone explain this codeinput type=

by Eureka_sg (Monk)
on Apr 18, 2001 at 05:43 UTC ( [id://73414]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://73414]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-18 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found