how to find out caller file javascript funcgions 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();