Caller information in Javascript
Caller – Returns the function that invoked the specified function. Not a standard javascript function but implemented in Mozilla engine and JScript. If the function f was invoked by the top level code, the value of f.caller is null, otherwise it’s the function that called f. Example: Checking the value of a function’s caller property […]