You should just be able to use the window object.
>From: Hans Jörg Friedrich <Hans.Friedrich@b...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] referencing the calling window
>Date: Fri, 22 Feb 2002 17:03:13 +0100
>
>Hello,
>
>I've got a function which is defined in an external js-file. This file is
>included into the frameset document.
>
>Is it possible to identify the window or the document or anything else that
>gives me a hint on the origin of the function call?
>
>thanks in advance
>Hans
>
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com