Answers for "Javascript get caller function"

2

Javascript get caller function

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

function someOtherFunction(){
   alertTheCallersName();
}
someOtherFunction();
Posted by: Guest on July-25-2019

Code answers related to "Javascript get caller function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language