Export (0) Print
Expand All
1 out of 5 rated this helpful - Rate this topic

apply Method (JavaScript)

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

apply([thisObj[,argArray]])
thisObj

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

argArray

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

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 (JavaScript)

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.