1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<html>
<head>
<title>fact 1.0</title>
<script type="text/vbscript">
sub ok_onclick
document.commande.total.value = document.commande.depart.value - document.commande.debut.value
msgbox "alerte"
end sub
</script>
</head>
<body>
<form name="commande">
<table align="center">
<tr>
<td align="center"><input type="text" name="debut"/><input type="text" name="depart"/><input type="button" name="ok" value="calculer"/><input type="text" name="total"/></td>
</tr>
</table>
</form>
</body>
</html> |