Here is one idea (will need tweaking):
<input type="text" id="sumBox" name="sumBox" onFocus="SumBoxes();" />
<script language="JavaScript">
function SumBoxes()
{
var val1 = form1.addBox1.Value;
var val2 = form2.addBox1.Value;
var val3 = form3.addBox1.Value;
var val4 = form4.addBox1.Value;
//May need test for "" on each box here, turn to 0, like
if(val1 == '')
{
val1 = 0;
}
form1.sumBox.Value = val1 + val2 + val3 + val4;
}
</script>
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** *************
Think outside the box!
************************************************** *************
"Davisro" <NA> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
I would like to have a total box show the totol of four textboxes when
anyone of them change.
I know I could do this via postback, but would like to do this on client
side utilizing javascript.
I am familiar with asp.net but not in how to migrate javascript into the
html.
Thanks,
Rog