JS5009: Undefined identifier

The JScript compiler does not recognize an identifier. This may occur when a referenced variable does not exist or when a with block is used to access an object property that does not exist.

To correct this error

  1. Declare the variable with a var statement (as in var x;).

  2. Make sure that only valid object members are referenced in a with block.

  3. Reference the object member explicitly instead of using the with statement.

See Also

Reference

var Statement

with Statement

Concepts

Scope of Variables and Constants

Other Resources

JScript Variables and Constants

JScript Reference