HTML: Elegir el botón enviar por omisión / HTML: Set the Default Submit Button

14/Jan/2010, Category: Programación, Tags:

En HTML, el botón de enviar por omisión es el primero: se activa cuando oprimes la tecla <Enter>. Pero puedes usar algunos trucos para elegir otro. Por supuesto, puedes usar Javascript, pero también puedes usar CSS.

/

On HTML, the default submit button on a form is the first one -it is activated when <Enter> key is pressed.  But you can use some tricks to set another one as the default. Of course, you can use Javascript, but CSS is useful.

<div style="display:none">
    <input type="submit" value="Next >>" name="next"/>
</div>
<input type="submit" value="<< Back" name="back"/>
<input type="submit" value="Next >>" name="next"/>

O también / Also:

<input type="submit" value="Next >>" name="next"
       style="margin-left: 100px; position: absolute;"/>
<input type="submit" value="<< Back" name="back"/>

Referencia / Reference: http://archives.devshed.com/forums/showpost.php?p=6239558&postcount=6

Deja tu Comentario / Leave a Reply




To use reCAPTCHA you must get an API key from http://recaptcha.net/api/getkey