1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <html>
<head>
<script type="text/javascript">
function Fct_Somme(){
var O_Form = document.SOMME;
var Val_1 = parseFloat( O_Form.total.value);
var Val_2 = parseFloat( O_Form.totalcost.value);
O_Form.RESULTAT.value = ( Val_2 +Val_1);
}
</script>
</head>
<body>
<form id="SOMME" name="SOMME">
<input name = "total" type = "text" id="total" value="0.00" onkeyup = "Fct_Somme();">
<input name = "totalcost" type = "text" id="totalcost" value="0.00" onkeyup = "Fct_Somme();">
<input name = "RESULTAT" type = "text" value="0.00">
</form>
</body>
</html> |