<head>
<script language="javascript">
<!--
function calc(num1,num2)
{
document.form1.txtSum.value=Number(num1)+Number(num2)
}
//-->
</script>
</head>
<body>
<form name="form1">
Enter first number<br>
<input type ="text" name="txtNum1" size=8><br>
Enter second number<br>
<input type ="text" name="txtNum2" size=8><br>
<input type="button" value="ADD" onclick="calc(form1.txtNum1.value,form1.txtNum2.value)"><br>
<input type ="text" name="txtSum">
</form>
</body>
</html>