lo use Hace mucho! espero te sirva
Código Javascript
:
Ver original<html>
<head>
<title>Ejemplo</title>
<script>
function Sumar(Campo1, Campo2, Campo3)
{
var objCamp1=document.getElementById(Campo1);
var objCamp2=document.getElementById(Campo2);
var objCamp3=document.getElementById(Campo3);
//Supongamos qe si o si existen los campos... :P
if ((objCamp1.value!='') && (objCamp2.value!=''))
{
objCamp3.value=parseInt(objCamp1.value) + parseInt(objCamp2.value);
}
}
</script>
</head>
<body>
<form>
<input type="text" id="Sumar1" onBlur="Sumar('Sumar1','Sumar2','Resultado');"><br>
+<input type="text" id="Sumar2" onBlur="Sumar('Sumar1','Sumar2','Resultado');"><br>
<hr>
<input type="text" id="Resultado" onBlur="Sumar('Sumar1','Sumar2','Resultado');"><br>
</form>
</body>
</html>