View: No enviar formulario con enter. Metodo 2

  1. 10 months ago by jacinmontava
    1. <script type="text/javascript">
    2. function pulsar(e) {
    3.   tecla = (document.all) ? e.keyCode : e.which;
    4.   return (tecla != 13);
    5. }
    6. </script>
    7. <!-- -->
    8. <form action="loquesea.asp" onkeypress = "return pulsar(event)">
    9. <input type="text" />
    10. <input type="submit" />
    11. </form>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1695"></script>

0 comment about "No enviar formulario con enter. Metodo 2"