form field help

liunx

Guest
Hi all! I'm looking for some help.<br />
<br />
I have a simple javascript password system...not especially secure but it doesn't have to be. It's the type that sends the user to what they typed .html. Then there's a button that checks the password and sends them to the page. Well, it works well, but after typing in the password, the button isn't selected, so hitting return or enter doesn't do anything. The button has to be manually clicked. How can I fix this? Is there such code that will, upon striking return, activates a javascript command? For the button, onClick="submitentry()"...how can I make a keystroke do the same?<br />
<br />
Thank you much<br />
Michael<!--content-->just use a regular form submit button and put the onClick in the form and change it to be onSubmit instead of onClick<!--content-->
 
Back
Top