I have a function that validates some numbers on a form. The function is
being called 'onchange' after you have tabbed or clicked out of the box.
If the numbers are wrong, I want to set the focus back to the input box we
came from.
Here is the piece of code I am using.
document.all(sRow).focus();
alert("You have gone over your appropriation. Please correct it.");
It pops the message just fine, but does not set the focus back to the
box. It stays on the box we tabbed to. I can set the focus in other
situations just fine, it is just this onchange event that is causing a
problem.