How can I find the *script* element where my JavaScript is d

For a fragment of HTML/JavaScript that gets loaded into a host web page dynamically, I need the JavaScript fragment to know about where it is declared. Is there a way of finding the tag that the currently...