Can I get the name of the currently running function in javascript?
- by sprugman
Is it possible to do this:
myfile.js:
function foo() {
alert(<my-function-name>);
// pops-up "foo"
// or even better: "myfile.js : foo"
}
I've got the dojo and jquery frameworks in my stack, so if either of those make it easier, they're available.