Core JavaScript 1.5 Reference:Functions:arguments:caller
From MDC
Obsolete
[edit] Summary
Specifies the function that invoked the currently executing function.
| Property of arguments | |
| Implemented in: | JavaScript 1.1, NES 2.0
JavaScript 1.3: Deprecated. |
[edit] Description
arguments.caller can no longer be used. You can use the non-standard caller property of a function object instead. See its description for details.
arguments.caller property is only available within the body of a function.
[edit] Examples
The following code checks the value of arguments.caller in a function.
function myFunc() {
if (arguments.caller == null) {
return ("The function was called from the top!");
} else
return ("This function's caller was " + arguments.caller);
}