Click to See Complete Forum and Search --> : Enter button


srowden
04-02-2003, 09:50 AM
Newbie to javascript and have a fairly simple question. On my login page, I would like a user to enter a user id, password and hit the enter key to simulate clicking the login button. The login button is a gif and not a control.

Is this possible?

TIA,

Steve

IxxI
04-02-2003, 09:56 AM
Try using onSubmit in your <form> tag. So if you call a function called password() when you click the button write
<form onSubmit="password()">
That should work,

IxxI