Form button Help

liunx

Guest
Hey,<br />
<br />
I got a script (I can't remember where from) to make a simple login. It works fine, the problem is when you press the "Enter" key it doesn't work. You have to click on the button. I would like very much for this simple script to work by pressing the enter key. Below is the form code used, if you need more (like the actual script) let me know. Thanks in advance. Peace.<br />
<br />
<br />
<td bordercolor="#788090" align="center" valign="middle"><br />
<font face="Trebuchet MS, Arial, Batang" color="#112260"><br />
<br><br />
<form name="login"><br />
<b>Username:</b><br />
<input name="id" type="text" size="12"><br />
<input type="button" value="Login" onClick="pasuser(this.form)"><br />
</form><br />
</font><!--content-->because you are using a button instead of a sumbit button.<br />
<br />
<td bordercolor="#788090" align="center" valign="middle"><br />
<font face="Trebuchet MS, Arial, Batang" color="#112260"><br />
<br><br />
<form name="login"><br />
<b>Username:</b><br />
<input name="id" type="text" size="12"><br />
<input type="submit" value="Login" onsubmit="pasuser(this.form)"><br />
</form><br />
</font><!--content-->
 
Back
Top