JavaScript mendapatkan fungsi penelepon

function alertTheCallersName(){
    var callingFunctionName=alertTheCallersName.caller.name; //get the callers name here
    alert(callingFunctionName);
}

function someOtherFunction(){
   alertTheCallersName();
}
someOtherFunction();
Grepper