Default my Enter key into the OK button of the Login screen

2006-04-26 Thread VIKASS NAGPAL
Hi All, I have a login screen that prompts for userid and password. But when you press enter after inputing these fields it does not defaults to Ok button. So I want to default the button press event of Enter button into action perform event of OK button. Can anyone hint me regarding this. I

Re: Default my Enter key into the OK button of the Login screen

2006-04-26 Thread Marc Farrow
This is an HTML question. Is the button in a FORM tag? If not, then you will have to handle the button-pressed event with javascript and then submit the page if it is an enter key. On 4/26/06, VIKASS NAGPAL [EMAIL PROTECTED] wrote: Hi All, I have a login screen that prompts for userid and

Re: Default my Enter key into the OK button of the Login screen

2006-04-26 Thread Oliver Schoenwald
Hi, if you use a (x)html-formular to create the login screen, you can add a hidden input-field that contains the OK-Parameter (the same parameter-name and parameter-value as the OK-Button). So, when you hit Return OR the submit-button in that formular, the OK-Parameter is send in both cases