JScript  

Function expected

[This is preliminary documentation and subject to change]

Either you attempted to invoke one of the Function prototype methods on an object that was not a Function object, or you used an object in a function call context. For example, the following code produces this error because foo is not a function.

var foo = new Object();  // Create a new object called "foo".
var x = foo();           // Try and call foo as if it were a function.

To correct this error

See Also

Function Object | prototype Property | JScript Objects