Javascript get Function Name?
        Posted  
        
            by Scott
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Scott
        
        
        
        Published on 2010-04-15T19:19:31Z
        Indexed on 
            2010/04/15
            19:23 UTC
        
        
        Read the original article
        Hit count: 331
        
JavaScript
|functions
How can I access a function name from inside that function?
var my.namespace.myFunc = function() {
  this.getFn = function() {
    // access fully qualified name (ie "my.namespace.myFunc")
  }
}
var obj = new my.namespace.myFunc();
console.info(obj.getFn());
© Stack Overflow or respective owner