04/11/14 15:24
perillitommaso
<html> <head> <title>Somma tra addendi</title> <script> function somma(){ s = (document.modulo.addendo1.value*1)+document.modulo.addendo2.value; document.modulo.somma.value = s; return true; } </script> </head> <body> <form name="modulo" method="get" action="http://www.google.com" onSubmit="return(somma())"> <input type="txt" name="addendo1">Insersci il primo addendo<br> <input type="txt" name="addendo2">Inserisci il secondo addendo<br> <input type="submit" name="go" value="Fai la somma"><br> <input type="txt" name="somma">Risultato<br> </form> </body> </html>
quando clicco su "fai la somma" mi porta direttamente su google... non riesco a capire qual'è il problema
aaa