I’m using a JavaScript for my students to “log-in” to website to take online exams. I have a drop-down list for the the username and a text box for the password. One would expect that after entering the password you would press the enter key to proceed, but this doesn’t happen…the screen clears itself and the password field (as if you hit “Reset”). If you press Tab, then Enter, it’ll work. How do I get it to proceed by simply hitting Enter after typing in the password?
THE URL FOR THIS SITE IS: [url]http://www.pearsall.k12.tx.us/exams/
Here’s the script for the form-
“<form name=login>
<table border=1 cellpadding=3> <table width=225 border=4 cellpadding=5 bgcolor=339933>
<tr><td colspan=2><center><font size=”+1″ font color=FFFF00><b>Authorization Required</b></font></center></td></tr>
<tr><td><font color=FFFFFF><b>Username:</b></font></td><td><select name=memlist>
<option value=’x’>
<option value=’English|61882|GOIMTRGY’>English
<option value=’Math|61882|GWRMEEKR’>Math
<option value=’Science|61882|GWRMEEKR’>Science
<option value=’Social Studies|61882|GWRMEEKR’>Social Studies
</select></td></tr>
<tr><td><font color=FFFFFF><b>Password:</b></font></td><td><input type=password size=10 maxlength=8 name=pass></td></tr>
<tr><td colspan=2 align=center><input type=button value=”Login” onclick=”check(this.form)”><input type=”Reset”></td>
</tr>
</table>
</form>”