function compute(form) { form.result.value = eval(form.display.value) } setTimeout(compute(form), 1000);
setTimeout(function(){ alert('begin'); compute(form) alert('end'); }, 1000);