Ver original<input type="button" onclick="function(){document.getElementById('txtSum').value = sumar()}" value="Valor" />