4 Replies Latest reply on Oct 14, 2014 9:03 AM by Kasyan Servetsky

    Is there a way to find out the caller function in ESTK?

    Kasyan Servetsky Level 5

      Dear forum,


      How do you find out the caller function?

      I remember this question was asked on the forum before and, if memory serves me right, it was Peter Kahrel who answered it. Anyway, it was long ago and I can't find the post.


      function main() {
      function hello() {
          // Is it possible to find out that the caller function is 'main'?

      Before making the post, I googled for it and found many suggestions, for example:

      alert("caller is " + arguments.callee.caller.toString());

      But nothing works for me.