Possible Duplicate:
Can I get the name of the currently running function in javascript?
In Javascript Is there a way I can get the name of the method/ function inside which the javascript is getting executed. I want
alert('This message is coming while running inside the method ' + GetCurrentMethodName());