HTML and CSS Reference
The isNaN() built-in
function, which tests
whether a value is not
a number, is the only
function that tests a
numeric value as the
argument. The test uses
the NOT operator and
returns a Boolean value
of true or false.
event handler, onBlur, calls
function when Calculate
or other, value to a text field object within a form.
Table 10-10 Assignment Statement
where formname is the name of the form; textfieldname is the name of a text field in the form;
value is the attribute; and variable_or_literal is the value assigned to the text field.
To place the insertion point back in a specific text field in the form, the focus must be
the focus() method to give attention to an object. When the focus is set to an object, such
point in the text field. Table 10-11 shows the general form of the focus() method.
Table 10-11 focus() Method
where formname is the name of the form that contains the object; and objectname identifies
the object to which focus should be set.
The first step in creating this validation function is to define the variables that will
be needed. Table 10-12 shows the code to define the variables for the validSalesAmt() and
CalcLoanAmt() user-defined functions.
Table 10-12 Code for validSalesAmt() Function to Validate the Loan Amount