![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/08/2005, 10:55
|
![Avatar de thejuve](http://static.forosdelweb.com/customavatars/avatar32797_1.gif) | | | Fecha de Ingreso: abril-2003
Mensajes: 26
Antigüedad: 21 años, 10 meses Puntos: 0 | |
JavierB y Davisan gracias por los comentarios y sugerencias, encontre lo que necesitaba, gracias; por cierto contribuyendo dejo el codigo....
<SCRIPT TYPE="text/javascript">
<!--
function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13)
{
myfield.form.submit();
return false;
}
else
return true;
}
//-->
</SCRIPT>
____________
<FORM ACTION="/cgi-bin/mycgi.pl">
name: <INPUT NAME=realname SIZE=15><BR>
password: <INPUT NAME=password TYPE=PASSWORD SIZE=10
onKeyPress="return submitenter(this,event)"><BR>
<INPUT TYPE=SUBMIT VALUE="Log In">
</FORM> |