[Javascript] Knowing wich function called another function within the code of the latter.

Matt Warden mwarden at gmail.com
Tue Aug 22 07:16:01 CDT 2006


On 8/31/06, Loïc Prieto <loic_sephiroth at yahoo.es> wrote:
> And now - at last! - the context is set and now i can talk about what i actually need:
> �Is there a way to know from within a function wich file or class or Function called it?
> I would need that knowledge so that i can put the <script /> element needed by the calling Class
> just one line before the <script /> element of the calling Class.
>
> I hope i've explained myself right. And i hope you will be able to answer such a question.

The only thing I know of is arguments.caller, which was deprecated in JS1.3.

-- 
Matt Warden
Cleveland, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the Javascript mailing list