Name

caller — NN 3 IE J2 ECMA n/a

Synopsis

Read-only

Returns a reference to a function object that contained the statement invoking the current function.

Example

function myFunc()
    if (myFunc.caller == someFuncZ) {
        process for this function being called by someFuncZ
    }
}

Value

Function object.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.