ho corretto anche "or" con "||"
ma non vacodice:<form id="modulo" action="scrivi.php" method="post" onsubmit="if ((this.titolo2.value.length > 40) || (this.getElementsByTagName('testo2')[0].value.length > 45)) { alert('Spiacente hai superato il limite massimo di caratteri.'); return false; } ">![]()