JScript Methods (Windows Sc ...


JScript
call Method (Windows Scripting - JScript)

Calls a method of an object, substituting another object for the current object.

call([thisObj[, arg1[, arg2[,  [, argN]]]]])
Arguments

thisObj

Optional. The object to be used as the current object.

arg1, arg2, , argN

Optional. List of arguments to be passed to the method.

Remarks

The call method is used to call a method on behalf of another object. The call method allows you to change the object context of a function from the original context to the new object specified by thisObj.

If thisObj is not supplied, the global object is used as thisObj.

Applies To: Function Object (Windows Scripting - JScript)

Requirements

Version 5.5

See Also

Reference

Tags :


Community Content

GabrielS
How the call the call Method

call is a Method of Function Objects, so the syntax is:

fnObj.call([thisObj[, arg1[, arg2[,  [, argN]]]]])

Required. fnObj is a Function that will be called.

Tags : contentbug

Page view tracker