javascript get call stack code example
Example 1: Javascript get caller function
function alertTheCallersName(){
var callingFunctionName=alertTheCallersName.caller.name; //get the callers name here
alert(callingFunctionName);
}
function someOtherFunction(){
alertTheCallersName();
}
someOtherFunction();
Example 2: javascript get call stack
console.trace();