Expanding on Thomas' answer, you need to assign the math function to the
button onclick event.
<input type="button" value="Do some sums" onclick="MyMathsFunction()"
name="mathButton">
The javascript function MyMathsFunction() will contain javascript to do
the maths and write the answer somewhere (probably another form field).
The above assumes a form button is used. If the button is an image -
<a href="javascript:;" onclick="MyMathsFunction()"><img src="maths.gif"
alt="Maths Button" width="100" height="35" border="0"></a>
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp