function add() { var a = document.getElementById("TextBox1").value; var b = document.getElementById("TextBox2").value; var c = (a+b); document.getElementById("TextBox3").value = c; } <input id="Button1" type="button" value="+" onclick="add()" /></td>
var c = (parseInt(a)+parseInt(b));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)