Javascript get caller function
function alertTheCallersName(){
var callingFunctionName=alertTheCallersName.caller.name; //get the callers name here
alert(callingFunctionName);
}
function someOtherFunction(){
alertTheCallersName();
}
someOtherFunction();
Also in JavaScript:
- repeat a function javascript
- duplicate characters in a string javascript
- how to store textbox data while typing for chrome extension
- express server replit
- js change video src
- js find space in string
- === in js
- regular expression characters
- js add element to array
- angular date formats
- nodejs docker
- js get all select options
- javascript math min array
- operator to return specific data of a mongodb query
- difference between type and method in ajax
- js startswith
- discord delete messag
- pass php variable to javascript
- vue js get routes
- jquery click function
- mongoose bulk update
- take out decoration from link react
- javascript includes method getting 'hi' and 'high' problem
- javascript foreach object keys