I have an Order form. When I change the quantity I go to a script to
calculate anddisplay the Amount = UnitPrice * Quantity
But the Amount only display if I click somewhere else as the Quantity.
How can I display it without clicking ?
============================================
<SCRIPT LANGUAGE="JavaScript">
function compute(form1) {
form1.mt.value=parseFloat(form1.up.value)*parseInt (form1.qt.value);
}
</SCRIPT>
<body>
<form name="form1" >
<input name="up" type="text" id="up" value="15" readonly="">
<input name="qt" type="text" id="qt" onchange="compute(this.form);">
<input name="mt" type="text" id="mt" onfocus="this.blur()">
</form>
============================================