B bonann23 Nuovo Utente 28 Feb 2006 4 0 0 28 Feb 2006 #1 ho la necessità di scrivere una funzione che catturi l'evento del tasto enter. Potete aiutarmi grazie bonann23
ho la necessità di scrivere una funzione che catturi l'evento del tasto enter. Potete aiutarmi grazie bonann23
lukeonweb Utente Attivo 5 Mar 2003 5.175 13 38 47 Napoli www.lucaruggiero.it 1 Mar 2006 #2 <script type="text/javascript"> function tasti() { if (window.event.keyCode == 13) { alert("Che vuoi che faccia sta funzione?"); } } </script> <body onkeypress="tasti();">
<script type="text/javascript"> function tasti() { if (window.event.keyCode == 13) { alert("Che vuoi che faccia sta funzione?"); } } </script> <body onkeypress="tasti();">