When this onchange event in IE returns false, IE focus stays on that input box. In Firefox the focus always moves to the next field regardless.
HTML:
input name="seminar_donation" type="text" id="seminar_donation"
onchange="return CheckTotal(this);"
JavaScript:
function CheckTotal(inputbox) {
if (isNaN(parseInt(inputbox.value))) {
alert("Please enter only digits 0-9");
inputbox.focus();
return false;
}
return true;
}
In IE I don't even need the inputbox.focus() which unfortunately does not appear to do anything in Firefox to retain the focus on the errant input box. How can I get Firefox to stay on that input box?