23/03/2007, 02:41
|
| | Fecha de Ingreso: agosto-2005
Mensajes: 10
Antigüedad: 19 años, 5 meses Puntos: 0 | |
Re: Hace submit un text cuando pincho ENTER Hola!
También puedes probar a cambiar el botón submit por un tipo "button". O sea que:
<html>
<script>
function enviar()
{ var form=document.getElementById('frm');
form.submit();
}
</script>
<body>
<form id="frm" action="hola.html" method="get">
<input name="ccc" type="text" value="saasas">
<input name="" type="button" value="Enviar" onclick="enviar()>
</form>
</body>
</html> |