struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Weber <erikwe...@mindspring.com>
Subject Re: [OT] "Enter" key listener for form submittal
Date Wed, 01 Sep 2004 14:04:04 GMT
I need it because I have multiple buttons. On some screens, the Enter 
key triggers the "Cancel" button, which is not desirable. The "Cancel" 
button appears before the "Submit" button.

Erik


Slattery, Tim - BLS wrote:

>>I found this JavaScript, which is supposed to listen for the 
>>"Enter" key on any browser (and submit the form on keypress).
>>However, it doesn't seem to be working in IE:
>>    
>>
>
>I don't think you need this. By default, pushing the "Enter" key is
>equivalent to clicking the "Submit" button.
>
>
>--
>Tim Slattery
>Slattery_T@bls.gov
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message