JavaScript » Functions » arguments.callee

Syntax:
[Function.]arguments.callee

The arguments.callee property can only be used within the body of a function and returns a string specifying what that function is. As the this keyword doesn't refer to the current function, you can use the arguments.callee property instead.

The next example demonstrates the use of this property:

Examples

Code:
function testCallee(){return arguments.callee}
document.write(testCallee())
Output:
function testCallee(){return arguments.callee}