470,630 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,630 developers. It's quick & easy.

Calculations in web page

In a web page that has multiple html fields how just using javascript
can you perform a calculation such as multiplying the 3 fields together
and displaying the result in a field on the web page?

Dec 8 '06 #1
1 1137
ASM
ro*******@hotmail.com a écrit :
In a web page that has multiple html fields how just using javascript
can you perform a calculation such as multiplying the 3 fields together
and displaying the result in a field on the web page?
<form>
<input name="one"x
<input name="two"x
<input name="three">
<input type=button onclick="total.value=one.value*two.value*three.val ue"
value="=">
<input name="total">
</form>

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Erik | last post: by
11 posts views Thread by lduperval | last post: by
3 posts views Thread by brian kaufmann | last post: by
3 posts views Thread by John M | last post: by
5 posts views Thread by Kuldeep | last post: by
Cowbie
5 posts views Thread by Cowbie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.