You are here: irt.org | FAQ | JavaScript | Form | 6 | Q1003 [ previous next ]
Use something like:
<FORM> <INPUT TYPE="TEXT" NAME="number1"> x <INPUT TYPE="TEXT" NAME="number2"> <INPUT TYPE="BUTTON" VALUE="=" onClick="this.form.answer.value = (this.form.number1.value - 0) * (this.form.number2.value - 0)"> <INPUT TYPE="TEXT" NAME="answer"> </FORM>