dovrebbe andare ma non ne sono sicuro, non ho provato... mi sa che mi sono incasinato con l'operatore condizionalecodice:<script type="text/javascript"> function enter_textarea(campo,evento) { codice_tasto = evento.keyCode ? evento.keyCode : evento.which ? evento.which : evento.charCode; if (codice_tasto == 13) { document.mioform.submit(); return false; } else { return true; } } </script> <form name="mioform" method="post" action="index.php"> <textarea onkeypress="enter_textarea(this,event);"></textarea> </form>![]()

Rispondi quotando