I want to prevent the action when a value in "sumtot" is "NaN". According to what I understand returning false from an onSubmit function should cancel the FORM action?!
code:
HTML:
<FORM name="fm" onSubmit="return CheckValues()" method=get action="Save.asp">
SCRIPT:
function CheckValues() {
if (isNaN(document.fm.sumtot.value) == true) {
alert("Illegal value"
;
return false;
}
}
/Fredrik
code:
HTML:
<FORM name="fm" onSubmit="return CheckValues()" method=get action="Save.asp">
SCRIPT:
function CheckValues() {
if (isNaN(document.fm.sumtot.value) == true) {
alert("Illegal value"
return false;
}
}
/Fredrik