1function alertTheCallersName(){
2 var callingFunctionName=alertTheCallersName.caller.name; //get the callers name here
3 alert(callingFunctionName);
4}
5
6function someOtherFunction(){
7 alertTheCallersName();
8}
9someOtherFunction();