JavaScript Editor Ajax toolkit     Ajax website 



Main Page

The code has an if statement followed by a semicolon. The semicolon is interpreted as the terminator for an empty statement that is executed when the conditional expression in the if statement is true.

To correct this error

  1. Remove the semicolon.

  2. Follow the if statement with an empty block ({}).

See Also

Reference

if...else Statement

Concepts

Troubleshooting Your Scripts

Other Resources

JScript Reference



JavaScript Editor Ajax toolkit     Ajax website


©