function testForEnter(){
 if(this.event.keyCode == 13) {CheckUserID()};
 }
 
Works fine.
 
Thanks again for the hint.
Max
----- Original Message -----
From: Michael Pemberton
To: [EMAIL PROTECTED]
Sent: Monday, May 07, 2001 5:08 PM
Subject: Re: [Dynapi-Help] keydown

there is an event triggered when the user presses enter in a text / password box.  i believe it is "onchange".  just place "formname.submit()" as the event code.

if you have any questions, email me and I can try go into more detail.

Max Campsell wrote:

Hi,I would like to have as an alternative to a button click event. I have to Password entry panels, I would like an option to allow my user after entering their password to press the enter key an activate the same event as the button click would do.I would appreciate any suggestions and am happy to pass on the finished product when it  works. Thanks Max

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

Thanks for the suggestion. It made me look in the right place. The following code does the job.
added this to the Inpu object;
and this;
 

Reply via email to