Dynamic Content (cont'd...)

Calculating the Total:


<input type=button value="Total Purchase" 
name="total" 
onClick='
var total=
eval(parseInt
(document.forms[0].shoe_value.value)
+parseInt
(document.forms[1].slacks_value.value)
+parseInt
(document.forms[2].coat_value.value));

form.total_value.value="$" + total;'>