apply Method (Windows Scripting - JScript)
This page is specific to:.NET Framework Version:2.03.0
JScript
apply Method (Windows Scripting - JScript)

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

apply([thisObj[,argArray]])
Arguments

thisObj

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

argArray

Optional. Array of arguments to be passed to the function.

Remarks

If argArray is not a valid array or is not the arguments object, then a TypeError results.

If neither argArray nor thisObj are supplied, the global object is used as thisObj and is passed no arguments.

Applies To: Function Object (Windows Scripting - JScript)

Requirements

Version 5.5

See Also

Reference

Community Content

how to call the apply Method
Added by:GabrielS

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

fnObj.apply([thisObj[,argArray]])

Required. fnObj is a Function that will be called.

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View