how to can get caller parent function name in javascript code example
Example: Javascript get caller function
function alertTheCallersName(){
var callingFunctionName=alertTheCallersName.caller.name; //get the callers name here
alert(callingFunctionName);
}
function someOtherFunction(){
alertTheCallersName();
}
someOtherFunction();