Ciao, dovrebbe funzionare così:
codice:
<html>
<head>
<script>
ris=0
function somma(val1,val2){
ris=val1+val2
document.modulo.risultato.value=ris
}
</script>
</head>
<body>
<form name="modulo">
<input type="text" value="" onchange="somma(document.modulo.valuno.value*1,document.modulo.valdue.value*1)" name="valuno">
<input type="text" value="" onchange="somma(document.modulo.valuno.value*1,document.modulo.valdue.value*1)" name="valdue">
<input type="text" value="" name="risultato">
</form>
</body>
</html>