Hi Joe, Netscape supports it. not sure about IE. see the old forum posts. add
some JavaScript like this:

function enterKey(event) {
 if (event.which == 13)
    {
      document.PgALogin.elements["onBtnLoginWebEvent(BtnLogin)"].click();
    }
}

document.captureEvents(Event.KEYPRESS);
document.onkeypress=enterKey;




                                                                  
 (Embedded                                                        
 image moved   "Joe Rea" <[EMAIL PROTECTED]>                    
 to file:      07/01/99 10:07 AM                                  
 pic24445.pcx)                                                    
                                                                  



Please respond to "Joe Rea" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Janet Traub/IS/SSC/THD)
Subject:  [ND] Defaulting a button web event when the enter key is pressed





I am trying to make a button the default when the user presses the enter key on
their
keyboard.  I don't think that Netscape supports this at all, but I want IE users
to have
this functionality.  I have a way to do this using hiddens and project-level
code, but
it is quite a hack.  Is there some easy way to do this without code in multiple
places?
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

pic24445.pcx

Reply via email to