I\'m trying to get the name of the currently running function. From what I\'ve read, this should be possible using:
(arguments.callee.toString()).match(/func
On firefox 3.5, Safari 5, and Chrome 6.0 you can use:
function myFunctionName() { alert("Name is " + arguments.callee.name ); } myFunctionName();
You can also get the function that called the current one using arguments.callee.caller.